* [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
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.