DragonFly kernel List (threaded) for 2008-02
DragonFly BSD
DragonFly kernel List (threaded) for 2008-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

spinlock semantics


From: "Nuno Antunes" <nuno.antunes@xxxxxxxxx>
Date: Sun, 17 Feb 2008 16:43:16 +0000

Hi,

While reading about DragonFlys locking primitives in a quest to try to
understand which kind of lock best applies in each situation, I found
the following at the spinlock(9) manpage.

"If you wish to disable FAST interrupts and IPIs you need to enter a
critical section prior to obtaining the spinlock."

But then, on the mailing list archive, I found a message [1] where one
can read the following with regards to spinlocks:

"Automatically enters a critical section."

So, naturally, my question is which statement is true? Looking at the
implementation, i don't see any calls to crit_* there, so I assume
that the manpage is correct.

Thanks,
Nuno

[1] http://leaf.dragonflybsd.org/mailarchive/kernel/2006-11/msg00026.html



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]