From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] rt_task_info.status encoding
Date: Wed, 15 Oct 2008 18:25:00 +0200 [thread overview]
Message-ID: <48F6195C.7070801@domain.hid> (raw)
Hi,
the documentation refers to the Native Task Status (T_*) when it comes
to documenting rt_task_info.status. That is not correct. That field
contains far more flags than T_* is describing and, even worse, comes
with two collisions: T_PRIMARY and T_JOINABLE are not reported by
rt_task_inquire, rather T_RELAX (!T_PRIMARY, arrrg...) and T_HELD.
I see two ways out of this:
a) Redirect the documentation to the nucleus thread state flags.
b) Redefine the numerical values of T_PRIMARY and T_JOINABLE (the spare
bits are unused with the native skin), add missing but possibly
interesting flags as T_-constants and ensure that T_PRIMARY and
T_JOINABLE are correctly injected on rt_task_inquire from user
space.
Somehow I tend to prefer a)...
Jan
--
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
next reply other threads:[~2008-10-15 16:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 16:25 Jan Kiszka [this message]
2008-10-15 19:49 ` [Xenomai-core] rt_task_info.status encoding Philippe Gerum
2008-10-15 20:00 ` Gilles Chanteperdrix
2008-10-16 6:49 ` Jan Kiszka
2008-10-16 16:55 ` Philippe Gerum
2008-10-15 21:30 ` Jan Kiszka
2008-10-16 19:50 ` Philippe Gerum
2008-10-16 21:45 ` Jan Kiszka
2008-10-16 22:04 ` Gilles Chanteperdrix
2008-10-16 22:17 ` Jan Kiszka
2008-10-16 22:26 ` Gilles Chanteperdrix
2008-10-16 23:07 ` Jan Kiszka
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=48F6195C.7070801@domain.hid \
--to=jan.kiszka@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.