(pid: Option<Pid>)
| 150 | |
| 151 | #[inline] |
| 152 | pub(crate) fn getpriority_process(pid: Option<Pid>) -> io::Result<i32> { |
| 153 | unsafe { |
| 154 | Ok(20 |
| 155 | - ret_c_int(syscall_readonly!( |
| 156 | __NR_getpriority, |
| 157 | c_uint(PRIO_PROCESS), |
| 158 | c_int(Pid::as_raw(pid)) |
| 159 | ))?) |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | #[inline] |
| 164 | pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> { |