| 354 | } |
| 355 | |
| 356 | void |
| 357 | proc_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? |
no test coverage detected