Skip to contentSkip to conversation

rt_pipe_read returns -ENOBUFS

Xenomai-help newsgroup 2 participants 2 messages Jan 29, 2009

lore
Share & tools
lore

newsgroup

author
#0 lore raw

Hello,

ive got an userspace process running in realtime and try to communicate to another process unsing the Pipes. rt_pipe_write() to the non realtime process works fine. ich can read the /dev/rtp1 without problems.

Now i try to write from this process to the realtime process using the /dev/rtp2. The rt_pipe_read() returns a -ENOBUFS.

here the call (dirty copy):

struct struct_FIFO_Header {
unsigned short ID;
unsigned short Size;
};

struct_FIFO_Header _Header;

ret = rt_pipe_read(&pipe_read,&_Header,sizeof(_Header),TM_NONBLOCK );

ret is now -ENOBUFS

Ive done similar the same using rtai without problems. anone an idea why it occours?

Greets
Maveric

#1 lore raw
Quoted 15 lines · newsgroup

Hello,

ive got an userspace process running in realtime and try to communicate to another process unsing the Pipes. rt_pipe_write() to the non realtime process works fine. ich can read the /dev/rtp1 without problems.

Now i try to write from this process to the realtime process using the /dev/rtp2. The rt_pipe_read() returns a -ENOBUFS.

here the call (dirty copy):

struct struct_FIFO_Header {
unsigned short ID;
unsigned short Size;
};

Quoted 8 lines

struct_FIFO_Header _Header;

ret = rt_pipe_read(&pipe_read,&_Header,sizeof(_Header),TM_NONBLOCK );

ret is now -ENOBUFS

Ive done similar the same using rtai without problems. anone an idea why it occours?

The great thing with Xenomai compared to rtai is that it has doc. But if you do not use it, you are right, you have no reason to use Xenomai instead of rtai.

Signature · 1 line
                                                 Gilles.