LEMARCHAND Ludovic wrote: > Hello > > I have an application with xenomai task and a standard linux process in order > to establish a communication between them. > I have read that message pipe services is the best solution. > > So, I tested the pipe.c exemple, but it doesn't compile. I have include > native/pipe.h library but it doesn't find RT_PIPE_MSG and rt_pipe_alloc(). > So, I take a look at the library and this elements are declared between ifdef > __KERNEL__ ... endif, but this condition is never validate. > > How can I register my xenomai task as __KERNEL__ ? Is it automatic, have I > something to do ?
See: http://www.xenomai.org/documentation/trunk/html/api/group__pipe.html Each service documentation tells the context from which it may be called. Some services may only be called from kernel context (that is, if you are compiling a kernel module), some other may be called from user-space. What you are likely looking for is rt_pipe_create. -- Gilles _______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
