From owner-freebsd-current@FreeBSD.ORG Wed Aug 13 21:07:31 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 618F037B404 for ; Wed, 13 Aug 2003 21:07:31 -0700 (PDT) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [66.31.45.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 318E543FBD for ; Wed, 13 Aug 2003 21:07:30 -0700 (PDT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com (localhost.crodrigues.org [127.0.0.1])h7E47OnF000632 for ; Thu, 14 Aug 2003 00:07:24 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)h7E47OFQ000631 for freebsd-current@freebsd.org; Thu, 14 Aug 2003 00:07:24 -0400 (EDT) Resent-Message-Id: <200308140407.h7E47OFQ000631@h00609772adf0.ne.client2.attbi.com> Received: from dibbler-2.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) h7CErY5u035242 for ; Tue, 12 Aug 2003 10:53:34 -0400 (EDT) (envelope-from rodrigc@dibbler-2.crodrigues.org) Received: (from rodrigc@localhost) by dibbler-2.crodrigues.org (8.12.9/8.12.9/Submit) id h7CErXfp035241 for freebsd-current@freebsd.org; Tue, 12 Aug 2003 10:53:33 -0400 (EDT) Date: Tue, 12 Aug 2003 10:53:33 -0400 From: Craig Rodrigues To: freebsd-current@freebsd.org Message-ID: <20030812145333.GA35220@crodrigues.org> References: <20030811224327.GA30982@crodrigues.org> <20030811202356.GA2348@technokratis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030811202356.GA2348@technokratis.com> User-Agent: Mutt/1.4i Resent-From: rodrigc@crodrigues.org Resent-Date: Thu, 14 Aug 2003 00:07:20 -0400 Resent-To: freebsd-current@freebsd.org Subject: Re: Porting 4.x code to 5.x: zfreei, zinit, struct vm_zone X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2003 04:07:31 -0000 On Mon, Aug 11, 2003 at 08:23:56PM +0000, Bosko Milekic wrote: > Take a look at zone(9) in -current. It has been updated, more or > less. Otherwise, glance at src/sys/vm/uma.h, which is decently > documented for what concerns exported API. Thanks for this pointer. This API is not too difficult, but it will require some work to port things. Sam Leffler also pointed me to sys/opencrypto/crypto.c, which makes good use of this API. For the zone(9) man page, for the uma_zcreate() function, it is not clear what the valid values of "flags" are. The only place where flags is mentioned is with respect to uma_zalloc: "the flags argument to selected flags as documented in malloc(9)." However, the flags argument in uma_zcreate() does not take the flags as documented in malloc(9). Would it be useful to update zone(9) with either: - text that says, go see the flags in - document the actual uma_zcreate flags The documentation in is actually good enough, IMHO, but referencing it in the man page would be nice. -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org