All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] rt_task_info.status encoding
@ 2008-10-15 16:25 Jan Kiszka
  2008-10-15 19:49 ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Kiszka @ 2008-10-15 16:25 UTC (permalink / raw)
  To: xenomai-core

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-10-16 23:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 16:25 [Xenomai-core] rt_task_info.status encoding Jan Kiszka
2008-10-15 19:49 ` 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

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.