* [Xenomai-help] question
@ 2007-03-16 16:50 xd yang
2007-03-18 15:08 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: xd yang @ 2007-03-16 16:50 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
hi all,
i'm not quite clear about how to communicate between a xenomai driver
and a standard linux driver. For exemple, i have a xenomai PCI device driver
,a standard linux driver and a application in the user space. I need to
enter some commands by the application, which will be received by the
standard linux driver, and then should be passed to the xenomai task, also
the same thing from xenomai to standard linux .
I noticed that there is a API message pipe service offered, with this API
can i solve this kind of question? And for that Xenomai driver should open
his side of pipe at the beginning to the end to ensure he could receive or
send messages?
thanks a lot,
xd_yang
[-- Attachment #2: Type: text/html, Size: 809 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] question
2007-03-16 16:50 [Xenomai-help] question xd yang
@ 2007-03-18 15:08 ` Gilles Chanteperdrix
[not found] ` <35481f3d0703190139r52764f23r71caf0be1cdd816e@domain.hid>
0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2007-03-18 15:08 UTC (permalink / raw)
To: xd yang; +Cc: xenomai
xd yang wrote:
> hi all,
> i'm not quite clear about how to communicate between a xenomai driver
> and a standard linux driver. For exemple, i have a xenomai PCI device driver
> ,a standard linux driver and a application in the user space. I need to
> enter some commands by the application, which will be received by the
> standard linux driver, and then should be passed to the xenomai task, also
> the same thing from xenomai to standard linux .
>
> I noticed that there is a API message pipe service offered, with this API
> can i solve this kind of question? And for that Xenomai driver should open
> his side of pipe at the beginning to the end to ensure he could receive or
> send messages?
>
> thanks a lot,
> xd_yang
I am not sure I understand what you need. The usual way for an
application to communicate with a driver, be it a real-time driver or
not, is to use the read/write/ioctl calls. So, if your application needs
to pass a special message to the drivers, implement an ioctl in these
drivers.
Message pipes are only useful if you want a real-time application to
communicate with a non real-time application.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] question
[not found] ` <35481f3d0703190139r52764f23r71caf0be1cdd816e@domain.hid>
@ 2007-03-19 9:00 ` Gilles Chanteperdrix
0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2007-03-19 9:00 UTC (permalink / raw)
To: xd yang; +Cc: xenomai
xd yang wrote:
> Hi, Gilles:
> thanks very much for your answers, i really appreciate it.
> I would like to give you more descriptions of my problem in case if
> you could give me more advices.The thing is i have a certain device
> with a dsp in it which is connected by PCI port with PC. And a driver
> for that device will be implemented in Xenomai kernel layer, and i need
> another application in linux user space to pass some commande to the DSP
> or receive some messages from the device. So that i need to implement a
> linux driver in standard linux kernel layer to connect the linux user
> space application and the Xenomai device driver. How could i realise
> it in this situation? could you give me some suggestions? thanks a
> lot,have a good day.
> |
The RTDM API allow you to write drivers that may be accessed both from
real-time and non real-time contexts. So, you only have to write your
driver with the RTDM API and you will be able to access it from
real-time as well as non real-time application.
--
Gilles Chanteperdrix
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-19 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 16:50 [Xenomai-help] question xd yang
2007-03-18 15:08 ` Gilles Chanteperdrix
[not found] ` <35481f3d0703190139r52764f23r71caf0be1cdd816e@domain.hid>
2007-03-19 9:00 ` 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.