All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: newsgroup <newsgroup@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_pipe_read returns -ENOBUFS
Date: Thu, 29 Jan 2009 10:34:21 +0000	[thread overview]
Message-ID: <4981862D.9000901@domain.hid> (raw)
In-Reply-To: <CDD78C600C124BCC853CDDDEEDDB1749@domain.hid>

newsgroup wrote:
> 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?

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.

-- 
                                                 Gilles.


      reply	other threads:[~2009-01-29 10:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-29 10:24 [Xenomai-help] rt_pipe_read returns -ENOBUFS newsgroup
2009-01-29 10:34 ` Gilles Chanteperdrix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4981862D.9000901@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=newsgroup@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.