Skip to contentSkip to conversation

EBUSY error with rt_intr_create API for timer interrupt

Adeos-main poornima r 2 participants 2 messages Sep 25, 2007 – Oct 1, 2007

lore
Share & tools
lore

poornima r

author
#0 lore raw

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

#1 lore raw
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