* UMA should ensure that this function is never called. * Freeing a proc structure would violate type stability. */
| 283 | * Freeing a proc structure would violate type stability. |
| 284 | */ |
| 285 | static void |
| 286 | proc_fini(void *mem, int size) |
| 287 | { |
| 288 | #ifdef notnow |
| 289 | struct proc *p; |
| 290 | |
| 291 | p = (struct proc *)mem; |
| 292 | EVENTHANDLER_DIRECT_INVOKE(process_fini, p); |
| 293 | pstats_free(p->p_stats); |
| 294 | thread_free(FIRST_THREAD_IN_PROC(p)); |
| 295 | mtx_destroy(&p->p_mtx); |
| 296 | if (p->p_ksi != NULL) |
| 297 | ksiginfo_free(p->p_ksi); |
| 298 | #else |
| 299 | panic("proc reclaimed"); |
| 300 | #endif |
| 301 | } |
| 302 | |
| 303 | static int |
| 304 | pgrp_init(void *mem, int size, int flags) |
nothing calls this directly
no test coverage detected