kernel to user-space communication
Hello Kernel
Is there a way to comminicate to a user-space program that an interrupt has occurred in a kernel module?
Thanks,
Daniel Sheltraw
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Quoted 2 lines · daniel sheltraw
Is there a way to comminicate to a user-space program that an interrupt has occurred in a kernel module?
You can send a signal or you can create a device for a process to wait on in poll or blocking read. Signals have quite high overhead because of the need to save state, so device will be faster (it's faster even if the process shoul clone a thread to handle it).
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <[email protected]>
Quoted 7 lines · daniel sheltraw
Hello Kernel
Is there a way to comminicate to a user-space program that an interrupt has occurred in a kernel module?
Thanks,
Daniel Sheltraw
Yes, poll() or select(). Look at some character drivers in the kernel.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips). The US military has given us many words, FUBAR, SNAFU, now ENRON. Yes, top management were graduates of West Point and Annapolis.