MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / get_process_group

Function get_process_group

core/src/task.rs:416–421  ·  view source on GitHub ↗

Finds the process group with the given PGID.

(pgid: Pid)

Source from the content-addressed store, hash-verified

414
415/// Finds the process group with the given PGID.
416pub fn get_process_group(pgid: Pid) -> AxResult<Arc<ProcessGroup>> {
417 PROCESS_GROUP_TABLE
418 .read()
419 .get(&pgid)
420 .ok_or(AxError::NoSuchProcess)
421}
422
423/// Finds the session with the given SID.
424pub fn get_session(sid: Pid) -> AxResult<Arc<Session>> {

Callers 4

sys_setsidFunction · 0.85
sys_setpgidFunction · 0.85
sys_getpriorityFunction · 0.85

Calls 2

getMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected