[email protected] wrote:
> In the Xenomai 2.4.x series there was a kernel option
> CONFIG_XENO_OPT_SELECT. Unfortunately there is no help available for
> this option and Google wasn´t very fertile.
CONFIG_XENO_OPT_SELECT is an internal option of Xenomai. The options you
should be looking at are
CONFIG_XENO_OPT_POSIX_SELECT
CONFIG_XENO_OPT_RTDM_SELECT
These ones are documented, and selecting them, simply select
CONFIG_XENO_OPT_SELECT. So, the fact that CONFIG_XENO_OPT_SELECT is off
in your kernel configuration is off simply means that the other two
options are off.
Could somebody tell me,
> what this option is for? I am asking, as we face some problems with
> "select" in a Xenomai task (task is stuck in select, was permanently
> marked as running (R in /proc/xenomai/sched) and lower priority tasks
> weren´t scheduled).
This looks strange. Each call to select should result in a call to
Xenomai "select" syscall, if you are using the POSIX skin, which should
return -ENOSYS, then select should call the glibc select. Since
obviously what you want is to call glibc select directly, you can try
calling __real_select instead.
Note that the issue with priorities you observe show that you have a
task with a priority higher than 0 using a glibc syscall, thereby
causing it to switch to secondary mode. The fact that lower priority
threads do not run is the effect of the "priority coupling", but the
real issue here is that a task with real-time priority is using a linux
syscall, which is something you should normally avoid.
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help