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

Function getpriority_pgrp

src/backend/linux_raw/process/syscalls.rs:140–149  ·  view source on GitHub ↗
(pgid: Option<Pid>)

Source from the content-addressed store, hash-verified

138
139#[inline]
140pub(crate) fn getpriority_pgrp(pgid: Option<Pid>) -> io::Result<i32> {
141 unsafe {
142 Ok(20
143 - ret_c_int(syscall_readonly!(
144 __NR_getpriority,
145 c_uint(PRIO_PGRP),
146 c_int(Pid::as_raw(pgid))
147 ))?)
148 }
149}
150
151#[inline]
152pub(crate) fn getpriority_process(pid: Option<Pid>) -> io::Result<i32> {

Callers

nothing calls this directly

Calls 1

ret_c_intFunction · 0.50

Tested by

no test coverage detected