Am Montag, 15. Januar 2007 16:34 schrieb David Brownell: > On Monday 15 January 2007 2:05 am, Oliver Neukum wrote: > > // as long as data wanted > > down_interruptible(&dev->sem_wantdata); > > > > You cannot use semaphores in interrupt context. Please read the kernel > > documentation about spinlocks and locking in general. > > ISTR that you can up() a semaphore in such contexts, but not down() it.
Yes, even down_trylock() would work, but down_interruptible() is deadly. Regards Oliver ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel