From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: xd yang <yangxd614@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] question
Date: Sun, 18 Mar 2007 16:08:26 +0100 [thread overview]
Message-ID: <17917.21994.572525.93172@domain.hid> (raw)
In-Reply-To: <35481f3d0703160950t6100f375o169a0cfd7bd9e9b8@domain.hid>
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.
next prev parent reply other threads:[~2007-03-18 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 16:50 [Xenomai-help] question xd yang
2007-03-18 15:08 ` Gilles Chanteperdrix [this message]
[not found] ` <35481f3d0703190139r52764f23r71caf0be1cdd816e@domain.hid>
2007-03-19 9:00 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17917.21994.572525.93172@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=xenomai@xenomai.org \
--cc=yangxd614@domain.hid \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.