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

Function vmspace_exitfree

freebsd/vm/vm_map.c:400–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void
401vmspace_exitfree(struct proc *p)
402{
403 struct vmspace *vm;
404
405 PROC_VMSPACE_LOCK(p);
406 vm = p->p_vmspace;
407 p->p_vmspace = NULL;
408 PROC_VMSPACE_UNLOCK(p);
409 KASSERT(vm == &vmspace0, ("vmspace_exitfree: wrong vmspace"));
410 vmspace_free(vm);
411}
412
413void
414vmspace_exit(struct thread *td)

Callers 1

vm_waitprocFunction · 0.85

Calls 1

vmspace_freeFunction · 0.85

Tested by

no test coverage detected