From owner-freebsd-stable@FreeBSD.ORG Tue Jul 6 05:05:50 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 9B1A416A4CE; Tue, 6 Jul 2004 05:05:50 +0000 (GMT) Received: from d162.mplik.ru (relay1.mplik.ru [212.23.64.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 9756943D2F; Tue, 6 Jul 2004 05:05:49 +0000 (GMT) (envelope-from ngl@ur.ru) Received: from d162.mplik.ru (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 80CD8919E59; Tue, 6 Jul 2004 11:05:45 +0600 (YEKST) Received: from spirit (wall.mplik.ru [195.58.1.141]) by d162.mplik.ru (Postfix) with SMTP id E969191A159; Tue, 6 Jul 2004 11:05:35 +0600 (YEKST) Message-ID: <0e3d01c46316$df50c7a0$8501a8c0@spirit> From: "ngl" To: "Tim Robbins" References: <0e0401c46312$089eea10$8501a8c0@spirit> <20040706050055.GA63647@cat.robbins.dropbear.id.au> Date: Tue, 6 Jul 2004 11:05:35 +0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 X-Spam-Status: No, tests=bogofilter, spamicity=0.517837, version=0.12.3 X-Sagator-Scanner: 0.4.9-0rc1; drop(clamd()) deliver(BogoFilter()) 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:05:50 -0000 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. Thanks, Nik ----- Original Message ----- From: "Tim Robbins" To: "ngl" Cc: Sent: Tuesday, July 06, 2004 11:00 AM Subject: Re: Shared/exclusive (rw) locks > On Tue, Jul 06, 2004 at 10:30:57AM +0600, ngl wrote: > > Hello > > > > What locks are in freebsd stable kernel ? > > I have found only simplelock, what else ? > > lockmgr() -- see /sys/kern/kern_lock.c. > > > Tim > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"