Hello,

I think, you must call the function rtl_startup_irq(int irq) after
the function call rtl_request_irq(...).

int init_module(void)
{
        rtl_request_irq(9, handler);
        rtl_startup_irq(9);
        return;
}

with regards
Steffen         



Vijay Subramani wrote:
> 
> Hello,
> 
>    I have set an interrupt handler for the keyboard
> using the following module.
> 
> #include <rtl.h>
> #include <rtl_core.h>
> 
> unsigned int  handler(unsigned int irq , struct
> pt_regs * regs)
> {
>         rtl_printf("Hello \n");
>         return 0;
> }
> 
> int init_module(void)
> {
>         return rtl_request_irq(9,handler);
> }
> 
> void cleanup_module(void)
> {
>         rtl_free_irq(9);
> }
> 
>     It should print 'Hello' every time I press a key,
> but it does nothing. The keyboard functions normally
> as though I havent loaded the module..  What could be
> the problem ?
> 
> Thanks in advance,
>     Bye ,
>     Vijay Subramani
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

-- 

Steffen Hildebrandt

GESKO GmbH Dresden
Tiergartenstrasse 50
01219 Dresden
Germany

mailto:[EMAIL PROTECTED]

Tel.: +49 351 43639312
Fax : +49 351 43639318

e-mail (Pivat) : 
mailto:[EMAIL PROTECTED]
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to