From owner-freebsd-stable@FreeBSD.ORG Tue Jul 6 05:37:35 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 605D216A4CE for ; Tue, 6 Jul 2004 05:37:35 +0000 (GMT) Received: from robbins.dropbear.id.au (007.a.008.mel.iprimus.net.au [210.50.86.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5B0D43D3F for ; Tue, 6 Jul 2004 05:37:34 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id DBA2E421E; Tue, 6 Jul 2004 15:41:34 +1000 (EST) Date: Tue, 6 Jul 2004 15:41:34 +1000 From: Tim Robbins To: ngl Message-ID: <20040706054134.GB63647@cat.robbins.dropbear.id.au> References: <0e0401c46312$089eea10$8501a8c0@spirit> <20040706050055.GA63647@cat.robbins.dropbear.id.au> <0e3d01c46316$df50c7a0$8501a8c0@spirit> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e3d01c46316$df50c7a0$8501a8c0@spirit> User-Agent: Mutt/1.4.1i cc: freebsd-stable@freebsd.org Subject: Re: Shared/exclusive (rw) locks X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 05:37:35 -0000 On Tue, Jul 06, 2004 at 11:05:35AM +0600, ngl wrote: > Thanks > > I've found it too. > > But > /* > * The general lock structure. Provides for multiple shared locks, > * upgrading from shared to exclusive, and sleeping until the lock > * can be gained. The simple locks are defined in . > */ > > What means sleeping ? I need spinlock. > I cannot allow to fall asleep to kernel thread. You'll need to use simplelocks or spls then, as appropriate to the situation. Tim P.S.: This probably isn't the right mailing list for this discussion.