>>> 1.) If I don´t page align the size of shared memory (multiple of
>>> 4096)...
> The restrictions for page allignments affect the addr and offset
> paraemters only. To me it seems clear that mmap() in plain Linux and
> Xenomai behave differently.


Sorry for not having the start of the thread. I'm not sure if it is helpful to note that when I implemented memory mapped "device drivers" for our system I had to align the address and offset to the page size before the call to mmap would succeed. That was with plain Linux and the driver also works with Xenomai.

                                      - Tom

--
Thomas Lockhart
Supervisor, Distributed and Real-time Group
Instrument Software and Science Data Systems
Caltech/JPL