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

Thomas Chen tchen at on-go.com
Fri Mar 28 10:50:41 EST 2003

thanks... i will give that a try and see the latency / delay

on 3/27/03 11:50 PM, Erwin Authried at eauth at softsys.co.at wrote:

> 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
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org

More information about the uClinux-dev mailing list