rtapi_prio — thread priority functions
int rtapi_prio_next_higher ( int prio )
int rtapi_prio_next_lower ( int prio)
A value returned by a prior rtapi_prio_xxx call
The rtapi_prio_xxxx functions provide a portable way to set task
The mapping of actual priority to priority number depends on the RTOS.
Priorities range from rtapi_prio_lowest to rtapi_prio_highest, inclusive.
To use this API, use one of two methods:
Set your lowest priority task to rtapi_prio_lowest, and for each task of the next lowest priority, set their priorities to rtapi_prio_next_higher(previous).
Set your highest priority task to rtapi_prio_highest, and for each task of the next highest priority, set their priorities to rtapi_prio_next_lower(previous).
A high priority task will pre-empt or interrupt a lower priority
Linux is always the lowest priority!
Call these functions only from within init/cleanup code, not from realtime tasks.
Returns an opaque real-time priority number.