All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Markus.Franke@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_pipe_write() returns -ENOMEM
Date: Mon, 05 Mar 2007 19:30:08 +0100	[thread overview]
Message-ID: <45EC61B0.3020907@domain.hid> (raw)
In-Reply-To: <45EC5946.9030508@domain.hid>

Markus Franke wrote:
> OK. And if there is an overflow is there anything I can do during
> runtime, e.g. just to overwrite the data in the queue?

Why not something like:

while (-ENOMEM == rt_pipe_write(pipe, buf, size, mode)) {
	RT_PIPE_MSG *msg;
	rt_pipe_receive(pipe, &msg, TM_INFINITE);
	rt_pipe_free(pipe, msgp);
}

-- 
                                                 Gilles Chanteperdrix


  reply	other threads:[~2007-03-05 18:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05 16:10 [Xenomai-help] rt_pipe_write() returns -ENOMEM Markus Franke
2007-03-05 16:17 ` Gilles Chanteperdrix
2007-03-05 16:53   ` Markus Franke
2007-03-05 17:12     ` Gilles Chanteperdrix
2007-03-05 17:54       ` Markus Franke
2007-03-05 18:30         ` Gilles Chanteperdrix [this message]
2007-03-05 20:12           ` Gilles Chanteperdrix
2007-03-05 23:51             ` Markus Franke
2007-03-08 15:55               ` 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=45EC61B0.3020907@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Markus.Franke@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.