* [Xenomai-help] Using rtdm_irq_request from user-space.
@ 2011-10-17 17:05 Victor Alvidrez
2011-10-17 19:44 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Victor Alvidrez @ 2011-10-17 17:05 UTC (permalink / raw)
To: xenomai
Hello.
I am trying to a write simple program that can listen for interrupts
produced by the keyboard in user-space.
At first I tried to do this using the native API, however I figured out
that this functionality is turned off by default. So I decided to use
the rtdm API.
I wrote the code using the rtdm_irq_* related functions/variables and
included the <rtdm/rtdm.h> header file.
However, upon trying to compile I get a bunch of undefined reference
errors. I read through the rtdm.h file and found that there are no
definitions of rtdm_irq* related variables or function declarations.
All of these things are defined in <rtdm/rtdm_driver.h>, which you
cannot include in non-kernel code.
I guess it is pretty obvious that I cannot do this from user space...
but maybe I am missing something?
The rtdm API manual includes a "Environments:This service can be called
from:" section. And the function "rtdm_irq_request" lists "User-space
task (RT, non-RT)". Doesn't this mean that it can be called from a
user-space program?
Thanks for any info you can provide.
Running Ubuntu with Xenomai-2.5.5.2, linux kernel 2.6.32 .
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] Using rtdm_irq_request from user-space.
2011-10-17 17:05 [Xenomai-help] Using rtdm_irq_request from user-space Victor Alvidrez
@ 2011-10-17 19:44 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2011-10-17 19:44 UTC (permalink / raw)
To: Victor Alvidrez; +Cc: xenomai
On 10/17/2011 07:05 PM, Victor Alvidrez wrote:
> Hello.
>
> I am trying to a write simple program that can listen for interrupts
> produced by the keyboard in user-space.
> At first I tried to do this using the native API, however I figured out
> that this functionality is turned off by default. So I decided to use
> the rtdm API.
>
> I wrote the code using the rtdm_irq_* related functions/variables and
> included the <rtdm/rtdm.h> header file.
>
> However, upon trying to compile I get a bunch of undefined reference
> errors. I read through the rtdm.h file and found that there are no
> definitions of rtdm_irq* related variables or function declarations.
> All of these things are defined in <rtdm/rtdm_driver.h>, which you
> cannot include in non-kernel code.
>
> I guess it is pretty obvious that I cannot do this from user space...
> but maybe I am missing something?
Yes.
>
> The rtdm API manual includes a "Environments:This service can be called
> from:" section. And the function "rtdm_irq_request" lists "User-space
> task (RT, non-RT)". Doesn't this mean that it can be called from a
> user-space program?
>
> Thanks for any info you can provide.
This means that it can be called from the context of an ioctl emitted by
a user-space task (either RT or non RT). The RTDM skin is a kernel-only
skin.
--
Gilles.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-17 19:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 17:05 [Xenomai-help] Using rtdm_irq_request from user-space Victor Alvidrez
2011-10-17 19:44 ` Gilles Chanteperdrix
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.