All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] help: pipe + event flag group (or other synchronisation mechanism
@ 2008-06-26 10:05 Filip Van Rillaer
  2008-06-26 11:38 ` Philippe Gerum
  2008-06-26 22:00 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 3+ messages in thread
From: Filip Van Rillaer @ 2008-06-26 10:05 UTC (permalink / raw)
  To: xenomai

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

Hello, 

Our application is written with some kind of super-loop scheduling : we
have many drivers that call rt_event_signal (when data have been written
to the hardware or new data are available to be processed) and 1 task
that is calling rt_event_wait. After receiving an event, the superloop
task is then reading/writing the data from/to the appropriate driver.
Those calls to the drivers must never block (except to some locking to
protect the consistency of data-structures) to garantuee the real-time
behaviour of the application.
Now we want to communicate with the Linux-domain and thought we have to
use the Xenomai pipe-object for that purpose.

How can the superloop task in Xenomai receive an event from the
pipe-object when data are available to be read/written (so without
already reading the data)?

The ideal solution would be if one can ask the pipe-driver to call a
user-callback function when there is a change in the status (read/write)
or an equivalent system to the EPOLL interface (from the uclinux
domain).

Best regards,
Filip.


[-- Attachment #2: Type: text/html, Size: 1915 bytes --]

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

end of thread, other threads:[~2008-06-26 22:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-26 10:05 [Xenomai-help] help: pipe + event flag group (or other synchronisation mechanism Filip Van Rillaer
2008-06-26 11:38 ` Philippe Gerum
2008-06-26 22: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.