pub fn sys_sched_get() -> Result<u64, SyscallError>Expand description
SYS_SCHED_GET(346): read the calling task’s policy and priority.
Returns (policy as u32) | (priority_byte << 32). For Fair, the byte is
Nice offset by 20 (0 = -20, 20 = 0, 39 = 19); for RT it is the
priority (0..=99); Idle reports 0. Keeping the sign out of bit 63
means the packed return can never be mistaken for an errno by a generic
syscall wrapper.