[lug] spinlock man pages

Aaron Crane aaron.crane at pobox.com
Mon Sep 4 11:44:47 MDT 2000


"D. Stimits" <stimits at idcomm.com> writes:
> I'm trying to find out if there are any official man pages relating to
> the spinlock functions of <asm/spinlock.h>.

The functions in that file are kernel-specific -- you should only be using
them if you're writing kernel code.  In general, that applies to anything in
<asm/*.h> or <linux/*.h>.

> Can anyone tell me if there is any kind of pthread equivalent for the
> linux spinlock functions?

You should be able to just include <pthread.h> and link with -lpthread to
use the POSIX pthread functions.  The only thing I'd mention is that Linux
doesn't quite implement POSIX signal semantics for threads.

-- 
Aaron Crane   <aaron.crane at pobox.com>   <URL:http://pobox.com/~aaronc/>




More information about the LUG mailing list