From owner-freebsd-current Tue Mar 5 7:53: 5 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 44F3E37B417 for ; Tue, 5 Mar 2002 07:52:16 -0800 (PST) Received: (qmail 15852 invoked from network); 5 Mar 2002 15:52:07 -0000 Received: from unknown (HELO server.baldwin.cx) ([65.91.137.49]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 5 Mar 2002 15:52:07 -0000 Received: from laptop.baldwin.cx (john@laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g25Fq4G57134; Tue, 5 Mar 2002 10:52:04 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Tue, 05 Mar 2002 10:51:51 -0500 (EST) From: John Baldwin To: ouyang kai Subject: RE: simplelock to lock_class? Cc: current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 04-Mar-02 ouyang kai wrote: > Hi, eveyone, > I found the FreeBSD4.x defined the simplelock in the sys/sys/lock.h. > But, it doesn't exist in FreeBSD5.0, why? If I want use the FreeBSD4.x > simplelock function, > how and what can I use in FreeBSD5.0? 5.0 has different locking primitives than 4.x. What are you using a simplelock for on 4.x? That will help decide which locking primitive you would need to use in 5.0 to obtain similar semantics/behavior. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message