From owner-freebsd-current@FreeBSD.ORG Mon Aug 11 17:23:40 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 0BDFA37B401 for ; Mon, 11 Aug 2003 17:23:40 -0700 (PDT) Received: from godel.mtl.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id A359B43FBD for ; Mon, 11 Aug 2003 17:23:38 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: from godel.mtl.distributel.net (localhost [127.0.0.1]) h7BKNuP8002426; Mon, 11 Aug 2003 20:23:56 GMT (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by godel.mtl.distributel.net (8.12.9/8.12.9/Submit) id h7BKNu9B002425; Mon, 11 Aug 2003 20:23:56 GMT X-Authentication-Warning: godel.mtl.distributel.net: bmilekic set sender to bmilekic@technokratis.com using -f Date: Mon, 11 Aug 2003 20:23:56 +0000 From: Bosko Milekic To: Craig Rodrigues Message-ID: <20030811202356.GA2348@technokratis.com> References: <20030811224327.GA30982@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030811224327.GA30982@crodrigues.org> User-Agent: Mutt/1.4.1i cc: 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: Tue, 12 Aug 2003 00:23:40 -0000 On Mon, Aug 11, 2003 at 06:43:27PM -0400, Craig Rodrigues wrote: > Hi, > > I am trying to port Randall Stewart's SCTP implementation > from -STABLE to -CURRENT. > > The code makes use of zfreei(), zinit(), etc. and struct vm_zone. > > How can I port this code to -CURRENT? > > Can I start by replacing these calls be directly replaced with the uma_* > versions: > zinit -> uma_zcreate > zfreei -> uma_zfree > > How do I deal with the struct vm_zone? 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. You shouldn't have to touch 'vm_zone' directly (it doesn't exist anymore). > Thanks. > -- > Craig Rodrigues > http://crodrigues.org > rodrigc@crodrigues.org -- Bosko Milekic * bmilekic@technokratis.com * bmilekic@FreeBSD.org TECHNOkRATIS Consulting Services * http://www.technokratis.com/