Re: ‘SCHED_NORMAL’ not provided by Xenomai headers

Jan Kiszka jan.kiszka at
Sun Jan 13 04:25:50 CET 2019

On 13.01.19 04:08, Giulio Moro via Xenomai wrote:
> The docs for sched_setscheduler_ex() [1] and pthread_setscheparam_ex()[2]  claim that among the valid values for policy there is  "SCHED_NORMAL"
> however, SCHED_NORMAL is not provided by any of the Xenomai headers, so you get a compile-time error.
> [1]
> [2]

Yes, SCHED_NORMAL is an alias for SCHED_OTHER, but only the latter is available 
through pthread.h. We should probably change the constant here to avoid that 
confusion. Patches welcome.

BTW, you could use the SCHED_NORMAL definition by including <linux/sched.h>, but 
that should not be required.


More information about the Xenomai mailing list