Basic question about Locking (spinlocks/semaphores)

Richard Guenther (zxmpm11@student.uni-tuebingen.de)
Tue, 22 Jul 1997 12:46:42 +0200 (METDST)


Hi!

During my last kernel-source-reading session I discovered, that
in binfmt_msic I use the wrong locking strathegy (spinlocks).
I think I have now understand the correct semantics and switched
to a semaphore.

Now there is one question: we have read/write spinlocks, but no
read/write semaphores. Is there any reason (besides 'nobody
implemented these') to dont have them? If not, I will look at
this. (Or could somebody who actually knows of gcc-magic-asm
hack this together in 30min, as I will probably need a week for
this :( ).

PS: There is really missing some documentation about the spinlock
semantics (like the semaphore documentation, which is good).

Richard.