| 328 | }; |
| 329 | |
| 330 | void |
| 331 | proc_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 | |
| 343 | void |
| 344 | proc_id_set_cond(int type, pid_t id) |
no test coverage detected