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

Function proc_id_set

freebsd/kern/kern_proc.c:330–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328};
329
330void
331proc_id_set(int type, pid_t id)
332{
333
334 KASSERT(type >= 0 && type < nitems(proc_id_array),
335 ("invalid type %d\n", type));
336 mtx_lock(&procid_lock);
337 KASSERT(bit_test(proc_id_array[type], id) == 0,
338 ("bit %d already set in %d\n", id, type));
339 bit_set(proc_id_array[type], id);
340 mtx_unlock(&procid_lock);
341}
342
343void
344proc_id_set_cond(int type, pid_t id)

Callers 1

enterpgrpFunction · 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