devela::_dep::nc

Function sched_get_priority_max

pub unsafe fn sched_get_priority_max(policy: i32) -> Result<i32, i32> 
Available on crate feature dep_nc only.
Expand description

Get static priority max value.

§Examples

let ret = unsafe { nc::sched_get_priority_max(nc::SCHED_RR) };
assert!(ret.is_ok());
let max_prio = ret.unwrap();
assert_eq!(max_prio, 99);