Hello,
Am 25.11.2015 um 18:20 schrieb [email protected]:
Hello,
an rtdm driver that I use requires the rt_dev_open call to be executed
in primary mode.
With xenomai 2.4.2 it was possible to switch to primary mode using
rt_task_set_mode(0, T_PRIMARY, NULL);
Now I use xenomai 2.6.3, but I can't find the T_PRIMARY flag.
Is there an other alternative to force the task to switch to primary
mode?
Would I have to change the rtdm driver, so xenomai performs the mode
switch automatically?
Thanks in advance for any hint.
Jochen
_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai
in the file API.CHANGES:
2.5.5 -> 2.6.0
* rt_task_set_mode() does not support the T_PRIMARY bit
anymore; the latter has been replaced by T_CONFORMING, which
is allowed in the setmask only, and only effective for
real-time shadows.
In other words,
- rt_task_set_mode(clrmask, setmask=T_PRIMARY, &oldmode)
becomes:
rt_task_set_mode(clrmask, setmask=T_CONFORMING, &oldmode),
forcing primary mode only for SCHED_FIFO Xenomai threads
only. Nop otherwise (i.e. a non real-time shadow remains
in relaxed mode after the syscall has returned, since this
is its conforming runtime mode).
- rt_task_set_mode(clrmask=T_CONFORMING, setmask, &oldmode)
always begets -EINVAL.
Regards
Johann
_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai