From owner-freebsd-doc Mon May 27 7:30:19 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ABA4037B404 for ; Mon, 27 May 2002 07:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4REU2644182; Mon, 27 May 2002 07:30:02 -0700 (PDT) (envelope-from gnats) Received: from hpdi.ath.cx (pc1-nfds1-5-cust34.not.cable.ntl.com [80.4.34.34]) by hub.freebsd.org (Postfix) with ESMTP id DC58937B403 for ; Mon, 27 May 2002 07:24:54 -0700 (PDT) Received: from hpdi.ath.cx (localhost.hpdi.net [127.0.0.1]) by hpdi.ath.cx (8.12.3/8.12.3) with ESMTP id g4REKOWA001177 for ; Mon, 27 May 2002 15:20:24 +0100 (BST) (envelope-from hitenp@hpdi.ath.cx) Received: (from hitenp@localhost) by hpdi.ath.cx (8.12.3/8.12.3/Submit) id g4REKNer001176; Mon, 27 May 2002 15:20:23 +0100 (BST) Message-Id: <200205271420.g4REKNer001176@hpdi.ath.cx> Date: Mon, 27 May 2002 15:20:23 +0100 (BST) From: Hiten Pandya Reply-To: Hiten Pandya To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/38618: Malloc types can be used with multiple allocations Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 38618 >Category: docs >Synopsis: Malloc types can be used with multiple allocations >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon May 27 07:30:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Hiten Pandya >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD hpdi.ath.cx 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat May 4 19:07:01 BST 2002 hitenp@hpdi.ath.cx:/c1/obj/data/dev/src/sys/CURRENT5 i386 >Description: The malloc_type argument to the kernel malloc(9), and MALLOC(9) calls be used for multiple allocations. Although this is common knowledge when you have experimented with it, but for newbie kernel hackers, it would be a good hint. The delta attached below can be used to provide this note. Thanks. -- Hiten Pandya -- >How-To-Repeat: >Fix: Apply the below provided delta. Otherwise please comment in the followup. Index: malloc.9 =================================================================== RCS file: /home/ncvs/src/share/man/man9/malloc.9,v retrieving revision 1.23 diff -u -r1.23 malloc.9 --- malloc.9 2002/03/18 10:52:09 1.23 +++ malloc.9 2002/05/27 14:18:40 @@ -184,7 +184,7 @@ The .Fa type argument is used to perform statistics on memory usage, and for -basic sanity checks. +basic sanity checks. It can be used to identify multiple allocations. The statistics can be examined by .Sq vmstat -m . .Pp >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message