Messages in this thread |  | | | Date | Wed, 10 Nov 1999 16:47:14 +0100 (CET) | | From | Andrea Arcangeli <> | | Subject | Re: question: spinlocks and userspace. |
| |
On Wed, 10 Nov 1999, Ingo Molnar wrote:
>additionally: if the data structure is never accessed from IRQ handlers >then it's fast and safe to use a semaphore instead of a spinlock.
You can access it also from irq handlers but you are allowed to use only down_trylock(). (a similar things happens in show_buffers() in buffer.c but with spinlocks)
Andrea
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
|  |