Function sched_getparam
pub unsafe fn sched_getparam(
pid: i32,
param: &mut sched_param_t,
) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Get scheduling paramters.
§Examples
let mut param = nc::sched_param_t::default();
let ret = unsafe { nc::sched_getparam(0, &mut param) };
assert!(ret.is_ok());
assert_eq!(param.sched_priority, 0);