MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / getpriority_process

Function getpriority_process

src/backend/linux_raw/process/syscalls.rs:152–161  ·  view source on GitHub ↗
(pid: Option<Pid>)

Source from the content-addressed store, hash-verified

150
151#[inline]
152pub(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]
164pub(crate) fn setpriority_user(uid: Uid, priority: i32) -> io::Result<()> {

Callers 1

niceFunction · 0.70

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected