On Wed, 7 Mar 2007, Luong Ngo wrote:Later versions of the kernel lock the kernel when an ioctl() is entered. This means that if you sleep in the ioctl(), nothing will get scheduled. You can do the following (possibly unsafe) in your ioctl(): int locked = kernel_locked(); ......... code ......... code if(locked) // Before sleeping section unlock_kernel(); .......... sleeping code if(locked) // After sleeping section lock_kernel(); Cheers, Dick Johnson Penguin : Linux version 2.6.16.24 on an i686 machine (5592.71 BogoMips). New book: http://www.AbominableFirebug.com/ _ **************************************************************** The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors@analogic.com - and destroy all copies of this information, including any attachments, without reading or disclosing them. Thank you. -
| Rafael J. Wysocki | [Bug #10493] mips BCM47XX compile error |
| Ingo Molnar | [patch 02/13] syslets: add syslet.h include file, user API/ABI definitions |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrea Arcangeli | [PATCH 00 of 11] mmu notifier #v16 |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Linus Torvalds | Re: [GIT]: Networking |
| Mark Lord | Re: [BUG] New Kernel Bugs |
