On 04/16/2013 02:59 PM, Michael Haberler wrote:

> 
> I've gotten the char shm driver to work flawlessly as suggested, and
> am now looking into dumping the rest of the SysV IPC legacy code in
> the linuxcnc code base and replace it by shm_open/mmap
> 
> reading up on the Xenomai Posix skin a bit late (ahem) it occurs to
> me the best solution would have been to use the Xenomai Posix skin
> throughout, kernel and userland, dump my little driver, and be done
> with it
> 
> the catch, of course, is that the Xenomai Posix skin is available on,
> well, Xenomai only, which leaves out the RTAI and vanilla kernels
> cases, and any other flavor downstream
> 
> reading up on ksrc/skins/posix/shm.c it occurs to me it isnt exactly
> a copy & paste job getting that to run without the Xenomai
> environment


The reason is that the posix shm interface is not exactly simple. By
defining your own API, you can do something much simpler. You them
implement the API directly in kernel-space with return memory, and in
user-space by using the ioctls provided by the driver.


-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to