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

Function proc_id_set_cond

freebsd/kern/kern_proc.c:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343void
344proc_id_set_cond(int type, pid_t id)
345{
346
347 KASSERT(type >= 0 && type < nitems(proc_id_array),
348 ("invalid type %d\n", type));
349 if (bit_test(proc_id_array[type], id))
350 return;
351 mtx_lock(&procid_lock);
352 bit_set(proc_id_array[type], id);
353 mtx_unlock(&procid_lock);
354}
355
356void
357proc_id_clear(int type, pid_t id)

Callers 1

do_forkFunction · 0.85

Calls 4

bit_testFunction · 0.85
bit_setFunction · 0.85
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected