[uClinux-dev] associating an external interrupt with a userland process

Erwin Authried eauth at softsys.co.at
Fri Mar 28 02:50:28 EST 2003


Am Fre, 2003-03-28 um 05.19 schrieb Thomas Chen:
> i am thinking about using an external interrupt to "launch" a
> userland process...  ie... when the interrupt occur, the userland
> task (predefined" will be started...
> 
> is this possible under uclinux? can anyone suggest something like
> this
> 
> thanks
> 
> tom
> 
Hello Tom,

one way to do that: write a device driver where you implement file
operations. In the read, you can do a interuptible_sleep_on that is
woken up by your interrupt routine with wake_up_interruptible.

In user space, do a select() to wait for your event, and lauch your
process then.

If you need examples how to do that: Look at the pcmcia code, that's how
the PCMCIA driver reports card events to the cardmgr daemon.

Regards,
Erwin





More information about the uClinux-dev mailing list