On 10/31/18 11:00 PM, Matheus Pinto wrote: > I am trying to simple bind a queue in a task on a executable file, where > the queue is created on another task on another executable file. > The queue is created normally, no error is sent. In both task I use the > exactly same string name to identify the queue when created in one task > (rt_queue_create) and binded in the other task (rt_queue_bind). When I try > bind the queue in another task with rt_queue_bind, a error is returned.
You probably need to build the user-space system with --enable-pshared passed to the configure script, which enables sharing of objects between different processes. In that mode, most objects created by the alchemy API are defined in a global namespace which can be shared by multiple processes belonging to the same so-called "session" (--session switch). See [1] and [2]. > However, the error dont fit in anyone errors described on API, or in > "/usr/include/asm-generic/errno-base.h" and > "/usr/include/asm-generic/errno.h" . The error value is -110. > I believe it is documented as -ETIMEDOUT for rt_queue_bind(), which timed out (only the remote process creating the queue knows about it, unless --enable-pshared is given). [1] https://gitlab.denx.de/Xenomai/xenomai/wikis/App_Setup_And_Init [2] https://gitlab.denx.de/Xenomai/xenomai/wikis/Installing_Xenomai_3 -- Philippe.
