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

Function proc_fini

freebsd/kern/kern_proc.c:285–301  ·  view source on GitHub ↗

* UMA should ensure that this function is never called. * Freeing a proc structure would violate type stability. */

Source from the content-addressed store, hash-verified

283 * Freeing a proc structure would violate type stability.
284 */
285static void
286proc_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
303static int
304pgrp_init(void *mem, int size, int flags)

Callers

nothing calls this directly

Calls 4

pstats_freeFunction · 0.85
ksiginfo_freeFunction · 0.85
thread_freeFunction · 0.70
panicFunction · 0.70

Tested by

no test coverage detected