From owner-freebsd-doc@FreeBSD.ORG Thu Feb 7 17:40:02 2008 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C134416A468 for ; Thu, 7 Feb 2008 17:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 996D513C4CC for ; Thu, 7 Feb 2008 17:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m17He2SZ088066 for ; Thu, 7 Feb 2008 17:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m17He2DV088065; Thu, 7 Feb 2008 17:40:02 GMT (envelope-from gnats) Resent-Date: Thu, 7 Feb 2008 17:40:02 GMT Resent-Message-Id: <200802071740.m17He2DV088065@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Pietro Cerutti" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C873716A419 for ; 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 ; 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 ) 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 ; 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" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.9 Cc: Subject: docs/120357: [patch] style.9 - document also the _arg versions of the uma_zalloc and uma_zfree functions X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2008 17:40:02 -0000 >Number: 120357 >Category: docs >Synopsis: [patch] style.9 - document also the _arg versions of the uma_zalloc and uma_zfree functions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 17:40:01 UTC 2008 >Closed-Date: >Last-Modified: >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: >Unformatted: