I try to use RT irq's. I've written the foloowing test in a module:
 
void ap_handler(void)
{
int x;
x=0;
}
 
int init_module(void)
{
request_RTirq(12, ap_handler);  /* 12 is the port for the mouse */
return 0
}
 
void cleanup_module(void)
{
free_Rtirq(12);
}
 
but it doesn't run properly. If i run the module without moving the mouse, the cleanup executes right but if i move the mouse under linux after removing the module, the system blocks. It blocks too if i move the mouse during the execution of the module. Are there interrupts numbers that can(t be used ???
Thanks for any advice.

Reply via email to