devela::_dep::nc

Function sched_getscheduler

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

Get scheduling parameter.

§Examples

let ret = unsafe { nc::sched_getscheduler(0) };
assert_eq!(ret, Ok(nc::SCHED_NORMAL));