I have installed Xenomai 3.0rc5 and compiled my test applications (with
minor revisions for the new API).
I modprobed the xeno_rtipc module for this, and my apps run.  But I am
getting the exact same error in the periodic task which attempts a
nonblocking read of a pipe: errno 11 -EWOULDBLOCK, and no bytes are ever
transferred across the pipe.

It seems unlikely that the Pipe API has been broken across Xenomai 2.6.2,
2.6.4 and 3.0rc5.
So perhaps there is something wrong with my code or the way I compile the
apps?

The gcc command line for the periodic task is this:
gcc -I/usr/xenomai/include/cobalt -I/usr/xenomai/include -D_GNU_SOURCE
-D_REENTRANT -D__COBALT__ -I/usr/xenomai/include/alchemy     -Xlinker
-rpath -Xlinker /usr/xenomai/lib  pipe-read.c
-Wl,@/usr/xenomai/lib/cobalt.wrappers
/usr/xenomai/lib/xenomai/bootstrap.o -Wl,--wrap=main
-Wl,--dynamic-list=/usr/xenomai/lib/dynlist.ld -L/usr/xenomai/lib -lcobalt
-lpthread -lrt     -lalchemy -lcopperplate -Wl,--wrap=main
-Wl,--dynamic-list=/usr/xenomai/lib/dynlist.ld -L/usr/xenomai/lib -lcobalt
-lpthread -lrt    -o pipe-read

I have attached the latest 'write' and 'read' test apps here.

Please help. Thanks,
-C Smith

On Wed, Jul 1, 2015 at 10:54 AM, Gilles Chanteperdrix <
[email protected]> wrote:

> On Wed, Jul 01, 2015 at 10:44:53AM -0700, C Smith wrote:
> > I tried xenomai stable 2.6.4 on a 3.14.17 kernel today. I get the same
> > result,
>
> What about the other tests? Xenomai testing? and XDDP sockets?
>
> > the rt task pipe read results in errno 11 -EWOULDBLOCK.  Here is a clue:
> > a blocking read in the periodic task works OK and reads the bytes from
> the
> > pipe - but I can't allow my periodic thread to block.
> >
> > The nonblocking pipe API should work in xenomai 2.6.4, right? Perhaps
> there
> > is something I'm doing wrong in my code or my compile?
> > I have attached my test code for you to look at, in case I am doing
> > something wrong.
>
> There is no doubt that it should be working. But maybe it does not,
> and understanding why would be a waste of time if it has been fixed
> in Xenomai testing.
>
> Please stay on the lit.
> --
>                                             Gilles.
> https://click-hack.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pipe-write.c
Type: text/x-csrc
Size: 395 bytes
Desc: not available
URL: 
<http://xenomai.org/pipermail/xenomai/attachments/20150702/60eda063/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pipe-read.c
Type: text/x-csrc
Size: 3254 bytes
Desc: not available
URL: 
<http://xenomai.org/pipermail/xenomai/attachments/20150702/60eda063/attachment-0001.c>
_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

Reply via email to