EBUSY error with rt_intr_create API for timer interrupt
Hello,
I am trying to register an handler for the timer interrupt with the following call in my init_module() (kernel space) for xenomai domain.
err = rt_intr_create(&intr_desc,"ir-xenomai",TIMER_INTERRUPT, &ir_handler,NULL, I_SHARED);
When I try inseting my module, I get EBUSY error.
Is there any problem with the interrupt object
creation mode (I_SHARED)?
Why is this error when interrupts can be shared
between
Xenomai and Linux?
Poornima
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
Quoted 9 lines · poornima r
Hello,
I am trying to register an handler for the timer interrupt with the following call in my
init_module()(kernel space) for xenomai domain.err =
rt_intr_create(&intr_desc,"ir-xenomai",TIMER_INTERRUPT, &ir_handler,NULL, I_SHARED);
Xenomai questions are better addressed to Xenomai mailing lists. I moved this thread therefore.
Quoted 8 lines
When I try inseting my module, I get EBUSY error.
Is there any problem with the interrupt object
creation mode (I_SHARED)?
Why is this error when interrupts can be shared
between
Xenomai and Linux?
Generally, sharing IRQs between the RT and the non-RT (Linux) domain is a very tricky thing that quickly makes your box instable or at least indeterministic.
Specifically for sharing the timer IRQ, the Xenomai with the help of the I-pipe patch provides fine APIs so that you don't need to mess with internals, just have a look at the docs. Because Xenomai already manages the timer IRQ in the RT domain, rt_intr_create denies the access.
Jan