On Fri, 2011-08-05 at 15:30 +0200, Richard Cochran wrote: > Dear xenomai people, > > I would like to have a shared ram fifo between a normal Linux program > and a xenomai program that uses the POSIX skin. Can I simply use > __raw_shm_open and __raw_mmap in the xenomai thread, or would there be > some penalty or bad side affect on the RT thread? > > I see that the documented way for RT/non-RT IPC is the message > pipe. Perhaps you could comment on the pros/cons of using it, compared > with my shared memory idea.
It really boils down to whether your use case is compatible with copying data between peers (amount, frequency etc.) to gain convenient synchronization and safe access mechanisms, which you would have to implement with shared memory otherwise. The recommended RT IPCs since Xenomai 2.5 are available from the RTDM-based RTIPC driver, which currently provides three different IPCs under the same umbrella. This driver exposes a socket interface to userland, and also benefits from the intra-kernel API of RTDM (i.e. you can send/receive data from another driver). For more info, examples/rtdm/profiles/ipc and the doxygen doc are also available. > > Thanks, > > Richard > > _______________________________________________ > Xenomai-help mailing list > [email protected] > https://mail.gna.org/listinfo/xenomai-help -- Philippe. _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
