From owner-freebsd-ports@FreeBSD.ORG Wed Dec 5 01:18:06 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5294D16A417 for ; Wed, 5 Dec 2007 01:18:06 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id F3C1213C465 for ; Wed, 5 Dec 2007 01:18:05 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 3189DEC3957; Wed, 5 Dec 2007 09:18:41 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id fW+2pTRwGo18; Wed, 5 Dec 2007 09:18:35 +0800 (CST) Received: from charlie.delphij.net (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id E3445EC3953; Wed, 5 Dec 2007 09:18:30 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:content-type:content-transfer-encoding; b=A/JblGF2jtReQzKQmD4w8e2vzU8kktgUTiZBlA1Mej4L+bcIUiqSk1UaRtMrd6kxG kuww5Eg2Bn5mRyeldKpzQ== Message-ID: <4755FC3F.5020706@delphij.net> Date: Tue, 04 Dec 2007 17:17:51 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Bubble Reading References: In-Reply-To: X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Slab Allocator And Wait Queues X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Dec 2007 01:18:06 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bubble Reading wrote: > Hi, > > Does someone know if there is something like Linux Slab Allocator and Linux > Wait Queues in FreeBSD? > > I am trying to port a linux code to FreeBSD which makes use of these. Do you mean kernel code or userland code? For slab allocator, FreeBSD provided a mechanism called "UMA" which provided similar functionality; Wait queues... We usually use msleep(9) and wakeup(9), but I am not sure if that is what you want... Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHVfw/hcUczkLqiksRAjQSAJ9xvmj3MRQv8bpsg3Oho8DvxkHLEACgrO88 R0s3xkvutlYojeMq7moaVoU= =Ry3O -----END PGP SIGNATURE-----