MCPcopy Create free account
hub / github.com/F-Stack/f-stack / proc_id_clear

Function proc_id_clear

freebsd/kern/kern_proc.c:356–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void
357proc_id_clear(int type, pid_t id)
358{
359
360 KASSERT(type >= 0 && type < nitems(proc_id_array),
361 ("invalid type %d\n", type));
362 mtx_lock(&procid_lock);
363 KASSERT(bit_test(proc_id_array[type], id) != 0,
364 ("bit %d not set in %d\n", id, type));
365 bit_clear(proc_id_array[type], id);
366 mtx_unlock(&procid_lock);
367}
368
369/*
370 * Is p an inferior of the current process?

Callers 4

pgdeleteFunction · 0.85
sess_releaseFunction · 0.85
reaper_clearFunction · 0.85
proc_reapFunction · 0.85

Calls 4

bit_testFunction · 0.85
bit_clearFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected