Lines Matching defs:vmspace
277 vmspace_zone = uma_zcreate("VMSPACE", sizeof(struct vmspace), NULL,
289 struct vmspace *vm;
292 vm = (struct vmspace *)mem;
305 struct vmspace *vm;
307 vm = (struct vmspace *)mem;
309 ("vmspace %p nentries == %d on free", vm, vm->vm_map.nentries));
311 ("vmspace %p size == %ju on free", vm, (uintmax_t)vm->vm_map.size));
316 * Allocate a vmspace structure, including a vm_map and pmap,
319 struct vmspace *
322 struct vmspace *vm;
360 vmspace_dofree(struct vmspace *vm)
385 vmspace_free(struct vmspace *vm)
398 struct vmspace *vm;
404 KASSERT(vm == &vmspace0, ("vmspace_exitfree: wrong vmspace"));
411 struct vmspace *vm;
419 * Prepare to release the vmspace reference. The thread that releases
420 * the last reference is responsible for tearing down the vmspace.
423 * deactivation does not modify a freed vmspace.
459 /* Acquire reference to vmspace owned by another process. */
461 struct vmspace *
464 struct vmspace *vm;
484 * The new vmspace is either the vmspace of a user process obtained
485 * from an active AIO request or the initial vmspace of the AIO kernel
490 * reference on their initial vmspace for the life of the process. As
491 * a result, the 'newvm' vmspace always has a non-zero reference
497 vmspace_switch_aio(struct vmspace *newvm)
499 struct vmspace *oldvm;
875 vmspace_resident_count(struct vmspace *vmspace)
877 return pmap_resident_count(vmspace_pmap(vmspace));
882 * such as that in the vmspace structure.
4303 * Update the newly-forked vmspace each time a map entry is inherited
4308 vmspace_map_entry_forked(const struct vmspace *vm1, struct vmspace *vm2,
4335 * Create a new process vmspace structure and vm_map
4340 * XXX It might be worth coalescing the entries added to the new vmspace.
4344 struct vmspace *
4345 vmspace_fork(struct vmspace *vm1, vm_ooffset_t *fork_charge)
4347 struct vmspace *vm2;
4684 struct vmspace *vm;
4889 * mapped to it, then create a new one. The new vmspace is null.
4894 struct vmspace *oldvmspace = p->p_vmspace;
4895 struct vmspace *newvmspace;
4905 * goal is to avoid running down the vmspace here, but let the
4906 * other process's that are still using the vmspace to finally
4926 struct vmspace *oldvmspace = p->p_vmspace;
4927 struct vmspace *newvmspace;
5423 db_printf("p = %p, vmspace = %p, map = %p, pmap = %p\n",