From hitenp@hpdi.ath.cx  Mon May 27 07:24:56 2002
Return-Path: <hitenp@hpdi.ath.cx>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <hiten@uk.FreeBSD.org>
Reply-To: Hiten Pandya <hiten@uk.FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Malloc types can be used with multiple allocations
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38618
>Category:       docs
>Synopsis:       Malloc types can be used with multiple allocations
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hmp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 27 07:30:02 PDT 2002
>Closed-Date:    Tue May 06 12:12:09 PDT 2003
>Last-Modified:  Tue May 06 12:12:09 PDT 2003
>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
	  -- <hiten@uk.FreeBSD.org>
	  
>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:
Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Fri Dec 27 09:39:25 PST 2002 
Responsible-Changed-Why:  
I'll work on getting this in over the next few days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38618 
Responsible-Changed-From-To: trhodes->hmp 
Responsible-Changed-By: hmp 
Responsible-Changed-When: Tue May 6 12:02:11 PDT 2003 
Responsible-Changed-Why:  
Assign this PR to myself.  Approved by: trhodes. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38618 
State-Changed-From-To: open->closed 
State-Changed-By: hmp 
State-Changed-When: Tue May 6 12:10:41 PDT 2003 
State-Changed-Why:  
A correct variant of the fix has been committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38618 
>Unformatted:
