FILEDESC_LOCK() implementation

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jun 12 07:01:04 UTC 2006


In message <20060612075515.C26634 at fledge.watson.org>, Robert Watson writes:

>What we probably want is an sx_init_interlock() that allows us to provide the 
>interlock for an sx lock, wich some variations on sx_*lock() to say we already 
>hold the interlock. 

Sounds overly complicated to use.

Why not just a sx_xlockfast() sx_xunlockfast() ? for some value of "fast" ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list