All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] EBUSY error with rt_intr_create API for timer interrupt
@ 2007-09-25 15:09 poornima r
  2007-10-01 18:42 ` [Xenomai-help] " Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: poornima r @ 2007-09-25 15:09 UTC (permalink / raw)
  To: adeos-main

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 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] [Adeos-main] EBUSY error with rt_intr_create API for timer interrupt
  2007-09-25 15:09 [Adeos-main] EBUSY error with rt_intr_create API for timer interrupt poornima r
@ 2007-10-01 18:42 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2007-10-01 18:42 UTC (permalink / raw)
  To: poornima r; +Cc: xenomai-help

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

poornima r wrote:
> 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.

>  
> 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 249 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-01 18:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-25 15:09 [Adeos-main] EBUSY error with rt_intr_create API for timer interrupt poornima r
2007-10-01 18:42 ` [Xenomai-help] " Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.