[uClinux-dev] question about Interrupt handler

Greg Ungerer gerg at snapgear.com
Sun Nov 18 21:50:37 EST 2001

Hi Joey,

JoeyShen wrote:
>   Following Alessandro's book of device driver, I finally succeed in making the handler respond to the external interrupt. Thanks for Alessandro's great job!
>   There still remains a question puzzled me. Alessandro said in the chapter of interrupt handling that "A handler can¡¯t transfer data to or from user space". I wonder if the handler can send messages or signals to the user space applications. If it can not, I would wake up another kernel process which has slept on a certain signal, then the woken process would communicate with the user applications. Am I right?

Yes. You cannot write to user space during an interrupt.
Interrupts occur asynchronously to the running of applications.
It is most likely the application that you want to write
into won't be running when you get the interrupt.


Greg Ungerer  --  Chief Software Wizard        EMAIL:  gerg at snapgear.com
SnapGear                                       PHONE:    +61 7 3435 2888
825 Stanley St,                                  FAX:    +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia              WEB:   www.snapgear.com
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/

More information about the uClinux-dev mailing list