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/

Reply via email to