| 341 | } |
| 342 | |
| 343 | void |
| 344 | proc_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 | |
| 356 | void |
| 357 | proc_id_clear(int type, pid_t id) |
no test coverage detected