Re: kernel to user-space communication

Jan Hudec (bulb@ucw.cz)
Mon, 12 Aug 2002 17:51:30 +0200


On Mon, Aug 12, 2002 at 10:40:27AM -0500, daniel sheltraw wrote:
> 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 <bulb@ucw.cz>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/