Function sched_rr_get_interval
pub unsafe fn sched_rr_get_interval(
pid: i32,
interval: &mut timespec_t,
) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Get the SCHED_RR
interval for the named process.
§Examples
let mut ts = nc::timespec_t::default();
let ret = unsafe { nc::sched_rr_get_interval(0, &mut ts) };
assert!(ret.is_ok());