From owner-cvs-all Tue Apr 30 8:48:42 2002 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 9E28F37B419; Tue, 30 Apr 2002 08:48:34 -0700 (PDT) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.3/8.12.3) with ESMTP id g3UFmIb4057648; Tue, 30 Apr 2002 11:48:19 -0400 (EDT) (envelope-from arr@FreeBSD.org) Received: from localhost (arr@localhost) by fledge.watson.org (8.12.3/8.12.3/Submit) with SMTP id g3UFmInZ057645; Tue, 30 Apr 2002 11:48:18 -0400 (EDT) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Tue, 30 Apr 2002 11:48:17 -0400 (EDT) From: "Andrew R. Reiter" X-Sender: arr@fledge.watson.org To: Jeroen Ruigrok/asmodai Cc: "Andrew R. Reiter" , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, jeff@FreeBSD.org Subject: Re: cvs commit: src/share/man/man9 zone.9 In-Reply-To: <20020430152704.GH66061@daemon.ninth-circle.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 30 Apr 2002, Jeroen Ruigrok/asmodai wrote: :> :>You can also pass M_ZERO. : :So feel free to elaborate, but I still hold to my idea that it was not as :intended and should be tested against. From uma.h: /* * Allocates an item out of a zone * * Arguments: * zone The zone we are allocating from * arg This data is passed to the ctor function * flags See sys/malloc.h for available flags. * * Returns: * A non null pointer to an initialized element from the zone is * garanteed if the wait flag is M_WAITOK, otherwise a null pointer may be * returned if the zone is empty or the ctor failed. */ void *uma_zalloc_arg(uma_zone_t zone, void *arg, int flags); /* * Allocates an item out of a zone without supplying an argument * * This is just a wrapper for uma_zalloc_arg for convenience. * */ static __inline void *uma_zalloc(uma_zone_t zone, int flags); ... -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message