Skip to contentSkip to conversation

kernel to user-space communication

DISCUSSION daniel sheltraw 3 participants 3 messages Aug 12, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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]>

#2 lore raw
In reply to daniel sheltraw
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.