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

Function getpriority_user

src/backend/linux_raw/process/syscalls.rs:128–137  ·  view source on GitHub ↗
(uid: Uid)

Source from the content-addressed store, hash-verified

126
127#[inline]
128pub(crate) fn getpriority_user(uid: Uid) -> io::Result<i32> {
129 unsafe {
130 Ok(20
131 - ret_c_int(syscall_readonly!(
132 __NR_getpriority,
133 c_uint(PRIO_USER),
134 c_uint(uid.as_raw())
135 ))?)
136 }
137}
138
139#[inline]
140pub(crate) fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> {

Callers

nothing calls this directly

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected