Messages in this thread | | | Subject | Re: kernel spinlocks; when to use; when appropriate? | From | (Jonathan Corbet) | Date | Mon, 09 Jun 2003 09:50:51 -0600 |
| |
> When is is appropriate to use spinlocks in the kernel, > how are they implemented (e.g. syntax, function names) and > can anyone think of a good area of the kernel for me to look > at, that uses them?
May I humbly suggest a look at Linux Device Drivers, Second Edition? It goes over locking primitives in a fair amount of detail, and includes examples of their use. Available freely online at:
http://www.xml.com/ldd/chapter/book/index.html
or in your favorite bookstore.
jon
Jonathan Corbet Executive editor, LWN.net corbet@lwn.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |