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 20:47:40 +0200	[thread overview]
Message-ID: <4EA1BE4C.5030301@domain.hid> (raw)
In-Reply-To: <CAMwkeZyTBkswrYe5TKaVZcY6Hm9FpefTSzLLABaN4HkgXFCa8g@domain.hid>

On 10/21/2011 08:08 PM, Fernando Herrero Carrón wrote:
> Alright, excuse me, I missed that explanation.
> 
> Then let me move to the actual figures at hand:
> 
>  $ cat /proc/xenomai/latency
> 3349
> 
> and, as I explained above, all values below 11450 are being rejected in my
> case.

I guess you have to check the code to understand what happens. But
really, running tasks with a 11500 period is already preposterous.

> my point of view. Especially when it refers to documentation, I believe that
> "too much" is never too much.

Conciseness is really important for a documentation, look at an example,
the sentence explaining the -EINVAL return value for
rt_task_make_periodic was a bit long, and you missed the important part,
even though I had told you that it was where was the answer to your
question. So, too much documentation is a problem, because users will
inevitably miss what is important.

Now look at an example outside Xenomai documentation:
http://pubs.opengroup.org/onlinepubs/000095399/functions/pthread_mutex_lock.html

The documentation for EINVAL says:
[EINVAL]
    The value specified by mutex does not refer to an initialized mutex
object.

It does not say, "or an object for which pthread_mutex_init failed", it
is pretty obvious that if pthread_mutex_init failed, the mutex is not
initialized. period.

-- 
                                                                Gilles.



  reply	other threads:[~2011-10-21 18:47 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
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 [this message]
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=4EA1BE4C.5030301@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.