Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2004 11:05:35 +0600
From:      "ngl" <ngl@ur.ru>
To:        "Tim Robbins" <tjr@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Shared/exclusive (rw) locks
Message-ID:  <0e3d01c46316$df50c7a0$8501a8c0@spirit>
References:  <0e0401c46312$089eea10$8501a8c0@spirit> <20040706050055.GA63647@cat.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <machine/param.h>.
 */

What means sleeping ? I need spinlock. 
I cannot allow to fall asleep to kernel thread.
  
Thanks,

Nik
----- Original Message ----- 
From: "Tim Robbins" <tjr@freebsd.org>
To: "ngl" <ngl@ur.ru>
Cc: <freebsd-stable@freebsd.org>
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0e3d01c46316$df50c7a0$8501a8c0>