Shared/exclusive (rw) locks

ngl ngl at ur.ru
Mon Jul 5 22:05:50 PDT 2004


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 at freebsd.org>
To: "ngl" <ngl at ur.ru>
Cc: <freebsd-stable at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"


More information about the freebsd-stable mailing list