All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_pipe_read returns -ENOBUFS
@ 2009-01-29 10:24 newsgroup
  2009-01-29 10:34 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: newsgroup @ 2009-01-29 10:24 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 704 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 2210 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-29 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-29 10:24 [Xenomai-help] rt_pipe_read returns -ENOBUFS newsgroup
2009-01-29 10:34 ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.