Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: waiting for irq from userland? | Date | 26 Jul 1999 04:57:48 GMT |
| |
Followup to: <379A76E6.8E4E2856@pobox.com> By author: Jeff Garzik <jgarzik@pobox.com> In newsgroup: linux.dev.kernel > > What is the most efficient way to wait for a device interrupt from > userland, if you control both the device driver and the application? > SysV semaphore? Signal? >
Blocking I/O. Use an I/O system call -- any system call (read, write, ioctl) -- and have that put the process on a wait queue. Your interrupt routine then wakes up the queue.
-hpa -- "The user's computer downloads the ActiveX code and simulates a 'Blue Screen' crash, a generally benign event most users are familiar with and that would not necessarily arouse suspicions." -- Security exploit description on http://www.zks.net/p3/how.asp
- 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/
| |