Re: ‘SCHED_NORMAL’ not provided by Xenomai headers

Jan Kiszka jan.kiszka at web.de
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] https://xenomai.org/documentation/xenomai-3/html/xeno3prm/group__cobalt__api__scheduler.html#ga796071f20fd35a5e05972157745728af
> [2] https://xenomai.org/documentation/xenomai-3/html/xeno3prm/group__cobalt__api__sched.html#ga405020019f5df8c7e74d30fd457384ed
> 

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.

Jan



More information about the Xenomai mailing list