Function nc::sched_rr_get_interval
source · pub unsafe fn sched_rr_get_interval(
pid: pid_t,
interval: &mut timespec_t
) -> Result<(), Errno>
Expand description
Get the SCHED_RR
interval for the named process.
§Example
let mut ts = nc::timespec_t::default();
let ret = unsafe { nc::sched_rr_get_interval(0, &mut ts) };
assert!(ret.is_ok());