From gahr@gahr.ch  Thu Feb  7 17:33:35 2008
Return-Path: <gahr@gahr.ch>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C873716A419
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  7 Feb 2008 17:33:35 +0000 (UTC)
	(envelope-from gahr@gahr.ch)
Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73])
	by mx1.freebsd.org (Postfix) with ESMTP id 54FF113C461
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  7 Feb 2008 17:33:35 +0000 (UTC)
	(envelope-from gahr@gahr.ch)
Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost)
	by cpanel03.rubas-s03.net with esmtpa (Exim 4.68)
	(envelope-from <gahr@gahr.ch>)
	id 1JNAcw-0003Jn-JF
	for FreeBSD-gnats-submit@freebsd.org; Thu, 07 Feb 2008 18:33:34 +0100
Received: from gahrtop.localhost (localhost [127.0.0.1])
	by gahrtop.localhost (Postfix) with ESMTP id 96A6550848
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  7 Feb 2008 18:33:31 +0100 (CET)
Message-Id: <1202405611.24576@gahrtop.localhost>
Date: Thu, 7 Feb 2008 18:33:31 +0100
From: "Pietro Cerutti" <gahr@gahr.ch>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [patch] style.9 - document also the _arg versions of the uma_zalloc and uma_zfree functions
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         120357
>Category:       docs
>Synopsis:       [patch] zone.9 - document also the _arg versions of the uma_zalloc and uma_zfree functions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 07 17:40:01 UTC 2008
>Closed-Date:    Sat Aug 02 12:50:06 UTC 2008
>Last-Modified:  Sat Aug  2 13:00:02 UTC 2008
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #3: Thu Feb  7 17:04:34 CET 2008
    root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:





>How-To-Repeat:





>Fix:


--- _zone.9.diff begins here ---
--- zone.9.orig	2008-02-07 18:12:31.000000000 +0100
+++ zone.9	2008-02-07 18:30:46.000000000 +0100
@@ -31,7 +31,9 @@
 .Sh NAME
 .Nm uma_zcreate ,
 .Nm uma_zalloc ,
+.Nm uma_zalloc_arg ,
 .Nm uma_zfree ,
+.Nm uma_zfree_arg ,
 .Nm uma_zdestroy ,
 .Nm uma_zone_set_max
 .Nd zone allocator
@@ -47,9 +49,13 @@
 .Fc
 .Ft "void *"
 .Fn uma_zalloc "uma_zone_t zone" "int flags"
+.Ft "void *"
+.Fn uma_zalloc_arg "uma_zone_t zone" "void *arg" "int flags"
 .Ft void
 .Fn uma_zfree "uma_zone_t zone" "void *item"
 .Ft void
+.Fn uma_zfree_arg "uma_zone_t zone" "void *item" "void *arg"
+.Ft void
 .Fn uma_zdestroy "uma_zone_t zone"
 .Ft void
 .Fn uma_zone_set_max "uma_zone_t zone" "int nitems"
@@ -142,6 +148,17 @@
 .Fn uma_zfree
 with a pointer to the zone and a pointer to the item.
 .Pp
+The variations
+.Fn uma_zalloc_arg
+and
+.Fn uma_zfree_arg
+allow to
+specify an argument for the
+.Dv ctor
+and
+.Dv dtor
+functions, respectively.
+.Pp
 Created zones,
 which are empty,
 can be destroyed using
--- _zone.9.diff ends here ---



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: remko 
State-Changed-When: Thu Jun 19 18:33:40 UTC 2008 
State-Changed-Why:  
Committed to head, mfc will follow 


Responsible-Changed-From-To: freebsd-doc->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Jun 19 18:33:40 UTC 2008 
Responsible-Changed-Why:  
Committed to head, mfc will follow 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120357 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/120357: commit references a PR
Date: Thu, 19 Jun 2008 18:34:02 +0000 (UTC)

 remko       2008-06-19 18:33:38 UTC
 
   FreeBSD src repository
 
   Modified files:
     share/man/man9       zone.9 
   Log:
   SVN rev 179880 on 2008-06-19 18:33:38Z by remko
   
   Document the _arg versions of the uma_zalloc and uma_zfree functions.
   
   PR:             docs/120357
   Submitted by:   gahr
   MFC after:      3 days
   
   Revision  Changes    Path
   1.29      +18 -1     src/share/man/man9/zone.9
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Sat Aug 2 12:50:03 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120357 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/120357: commit references a PR
Date: Sat,  2 Aug 2008 12:50:30 +0000 (UTC)

 remko       2008-08-02 12:49:56 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     share/man/man9       zone.9 
   Log:
   SVN rev 181176 on 2008-08-02 12:49:56Z by remko
   
   MFC r179880
   
     Document the _arg versions of the uma_zalloc and uma_zfree functions.
   
     PR:             docs/120357
     Submitted by:   gahr
     MFC after:      3 days
   
   Revision  Changes    Path
   1.28.2.1  +18 -1     src/share/man/man9/zone.9
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
