Is it OK if you spinlock a data structure and then manually unlock it? I may be off or not knowing what I am talking about, but isn't alan's simple mouse driver using spinlocks[1]? thanks [1] http://kernelnewbies.org/documents/kdoc/mousedrivers/driver.html On Thu, 27 Feb 2003, Seth Arnold wrote: > On Thu, Feb 27, 2003 at 08:47:01PM +0100, Frank A. Uepping wrote: > > Is that true that a spinlock gets undefined when compiled > > on a uniprocessor system? > > Thus spinlocks can't be used to provide mutual exclusion between > > concurrently executing processes on a uniprocessor system, isn't is? > > What exactly would awake a process spinning on a spinlock on a uniproc > system? :) There wouldn't be any other running processes on other > processors to do the job... > > -- > "It's just PR. They repeat "small government" enough, and people start > to look past the facts." -- Matt B > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/