All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Ulf Karlsson <karlsson.ulf@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rtpipe consistency problems
Date: Mon, 10 Dec 2007 15:16:17 +0100	[thread overview]
Message-ID: <475D4A31.1080908@domain.hid> (raw)
In-Reply-To: <c12ec2810712100218s7c93af6drc2ada3ee7644c152@domain.hid>

Ulf Karlsson wrote:
> Hi,
> 
> I encounter a problem with rtpipes where the packets are being being
> "locked up" inside the pipe, that is the read(2) call waiting for the
> data does not return, Furthermore, it appears like I lose packets in
> the pipe.
> 
> I have attached a two simple C-programs that demonstrate this behavior.
> 
> The program linux-pipe.c writes increasing integer values to the pipe
> and expects to be able to read the same value back from the pipe,
> while the program xeno-pipe.c reads an integer from the pipe and
> instantly writes the very same value back.
> 
> I am using a 2.6.20.21 kernel together with xenomai 2.4.0.
>

I can't reproduce this issue here, on the very same kernel/xenomai
combo. Looking at the pipe code, a closing regular Linux side
(linux-pipe) explicitly flushes the real-time output queue, so I just
don't get how any lingering data could be delivered across a pipe close.
Weird.

Could you send your .config? TIA,

-- 
Philippe.


  reply	other threads:[~2007-12-10 14:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10 10:18 [Xenomai-help] rtpipe consistency problems Ulf Karlsson
2007-12-10 14:16 ` Philippe Gerum [this message]
2007-12-10 14:55   ` Ulf Karlsson
2007-12-10 17:57     ` Philippe Gerum
2007-12-12  9:42     ` Philippe Gerum
2007-12-22 18:55       ` Philippe Gerum
2007-12-24 13:43         ` Ulf Karlsson

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=475D4A31.1080908@domain.hid \
    --to=rpm@xenomai.org \
    --cc=karlsson.ulf@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.