All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Fernando Herrero Carrón" <elferdo@domain.hid>
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] rt_task_wait_period returns an undocumented value
Date: Fri, 21 Oct 2011 18:15:25 +0200	[thread overview]
Message-ID: <4EA19A9D.1080502@domain.hid> (raw)
In-Reply-To: <CAMwkeZxmX1dU-5d2zDiYqv_SRcFqyDF+gmp+i8t=q1G6NXrmbg@domain.hid>

On 10/21/2011 06:04 PM, Fernando Herrero Carrón wrote:
> Dear list,
> 
> I am running xenomai-2.6-rc4 on an amd64 linux kernel version 2.6.38.8.
> 
> I am setting up a periodic task using
> 
> rt_task_set_periodic(NULL, TM_NOW, 11500);
> 
> For period values smaller than 11450 I get an EINVAL return value. I've got
> one question regarding this, and it's how is this threshold calculated?

See:
http://www.xenomai.org/documentation/trunk/html/api/group__pod.html#gaed5776a428e7c59b52b1da76f0d765fa

> 
> However, further down the program, supposing rt_task_set_periodic() failed
> with the above result, calling
> 
> rt_task_wait_period()
> 
> will return EAGAIN, which is not documented in
> http://www.xenomai.org/documentation/trunk/html/api/group__task.html#ga1645d3a072ef3cefeed3bcbb27dcf108
> .

That is because glibc choose to have EWOULDBLOCK == EAGAIN. And 
EWOULDBLOCK is documented.

-- 
					    Gilles.



  reply	other threads:[~2011-10-21 16:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21 16:04 [Xenomai-help] rt_task_wait_period returns an undocumented value Fernando Herrero Carrón
2011-10-21 16:15 ` Gilles Chanteperdrix [this message]
2011-10-21 17:37   ` Fernando Herrero Carrón
2011-10-21 17:47     ` Gilles Chanteperdrix
2011-10-21 18:08       ` Fernando Herrero Carrón
2011-10-21 18:47         ` Gilles Chanteperdrix
2011-10-21 19:01           ` Fernando Herrero Carrón
2011-10-21 19:07             ` Gilles Chanteperdrix
2011-10-21 19:15               ` Fernando Herrero Carrón
2011-10-21 20:11                 ` Daniele Nicolodi
2011-10-21 20:27                   ` Fernando Herrero Carrón

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=4EA19A9D.1080502@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Xenomai-help@domain.hid \
    --cc=elferdo@domain.hid \
    /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.