All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steve M. Robbins" <steve@sumost.ca>
To: Philippe Gerum <rpm@xenomai.org>
Cc: Xenomai@xenomai.org
Subject: Re: [Xenomai] Message Pipe services behaviour
Date: Mon, 3 Nov 2014 12:37:47 -0600	[thread overview]
Message-ID: <20141103183747.GB15262@sumost.ca> (raw)
In-Reply-To: <5457AD81.7090200@xenomai.org>

On Mon, Nov 03, 2014 at 05:29:53PM +0100, Philippe Gerum wrote:

> Just to make sure we are on the same page, as Dietmar mentioned in an
> earlier mail, read() as implemented by the rt-pipe driver only returns
> _one_ message at a time, although > 1 could be pending. One has to
> iterate over a read() loop using a non-blocking fd on the /dev/rtp
> device to get them all.

Aha!  Thanks (and to Dietmar).  I completely missed this fact.  I'll
go re-write the read as a loop and see if it works better.  I should read
until the read() returns 0 (bytes read)?

Thanks,
-Steve




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 173 bytes
Desc: Digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20141103/ee00a96d/attachment.sig>

  reply	other threads:[~2014-11-03 18:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-29 16:11 [Xenomai] Message Pipe services behaviour Steve M. Robbins
2014-10-29 17:30 ` Philippe Gerum
2014-10-31 20:00   ` Steve M. Robbins
2014-11-01  9:54     ` Philippe Gerum
2014-11-02  0:53       ` Steve M. Robbins
2014-11-03  8:18         ` Philippe Gerum
2014-11-03 15:59           ` Steve M. Robbins
2014-11-03 16:29             ` Philippe Gerum
2014-11-03 18:37               ` Steve M. Robbins [this message]
2014-11-03 20:01                 ` Philippe Gerum
2014-11-03 20:03                   ` Gilles Chanteperdrix
2014-11-03 20:18                     ` Philippe Gerum
2014-11-03 22:22                   ` Steve M. Robbins
2014-11-03  8:54 ` dietmar.schindler
2014-11-03  9:08   ` Philippe Gerum

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=20141103183747.GB15262@sumost.ca \
    --to=steve@sumost.ca \
    --cc=Xenomai@xenomai.org \
    --cc=rpm@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.