Lines Matching refs:vmspace

210 	vmspace_zone = uma_zcreate("VMSPACE", sizeof(struct vmspace), NULL,
222 struct vmspace *vm;
224 vm = (struct vmspace *)mem;
248 struct vmspace *vm;
250 vm = (struct vmspace *)mem;
270 * Allocate a vmspace structure, including a vm_map and pmap,
275 struct vmspace *
278 struct vmspace *vm;
316 vmspace_dofree(struct vmspace *vm)
341 vmspace_free(struct vmspace *vm)
348 panic("vmspace_free: attempt to free already freed vmspace");
357 struct vmspace *vm;
363 KASSERT(vm == &vmspace0, ("vmspace_exitfree: wrong vmspace"));
371 struct vmspace *vm;
383 * reference to the vmspace.
392 /* Switch now since other proc might free vmspace */
401 /* vmspace not yet freed, switch back */
408 /* Switch now since this proc will free vmspace */
421 /* Acquire reference to vmspace owned by another process. */
423 struct vmspace *
426 struct vmspace *vm;
454 * The new vmspace is either the vmspace of a user process obtained
455 * from an active AIO request or the initial vmspace of the AIO kernel
460 * reference on their initial vmspace for the life of the process. As
461 * a result, the 'newvm' vmspace always has a non-zero reference
467 vmspace_switch_aio(struct vmspace *newvm)
469 struct vmspace *oldvm;
753 vmspace_resident_count(struct vmspace *vmspace)
755 return pmap_resident_count(vmspace_pmap(vmspace));
778 * such as that in the vmspace structure.
3347 * Update the newly-forked vmspace each time a map entry is inherited
3352 vmspace_map_entry_forked(const struct vmspace *vm1, struct vmspace *vm2,
3379 * Create a new process vmspace structure and vm_map
3384 * XXX It might be worth coalescing the entries added to the new vmspace.
3388 struct vmspace *
3389 vmspace_fork(struct vmspace *vm1, vm_ooffset_t *fork_charge)
3391 struct vmspace *vm2;
3729 struct vmspace *vm;
3959 * mapped to it, then create a new one. The new vmspace is null.
3964 struct vmspace *oldvmspace = p->p_vmspace;
3965 struct vmspace *newvmspace;
3975 * goal is to avoid running down the vmspace here, but let the
3976 * other process's that are still using the vmspace to finally
3996 struct vmspace *oldvmspace = p->p_vmspace;
3997 struct vmspace *newvmspace;
4427 db_printf("p = %p, vmspace = %p, map = %p, pmap = %p\n",