| /f-stack/freebsd/i386/linux/ |
| H A D | imgact_linux.c | 64 struct vmspace *vmspace; in exec_linux_imgact() local 126 vmspace = imgp->proc->p_vmspace; in exec_linux_imgact() 141 error = vm_map_find(&vmspace->vm_map, NULL, 0, &vmaddr, in exec_linux_imgact() 160 error = vm_map_protect(&vmspace->vm_map, vmaddr, in exec_linux_imgact() 173 error = vm_mmap(&vmspace->vm_map, &vmaddr, in exec_linux_imgact() 188 error = vm_map_protect(&vmspace->vm_map, vmaddr + a_out->a_text, in exec_linux_imgact() 199 error = vm_map_find(&vmspace->vm_map, NULL, 0, &vmaddr, in exec_linux_imgact() 210 vmspace->vm_tsize = round_page(a_out->a_text) >> PAGE_SHIFT; in exec_linux_imgact() 211 vmspace->vm_dsize = round_page(a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_linux_imgact() 212 vmspace->vm_taddr = (caddr_t)(void *)(uintptr_t)virtual_offset; in exec_linux_imgact() [all …]
|
| /f-stack/freebsd/amd64/vmm/ |
| H A D | vmm_mem.c | 61 vmm_mmio_alloc(struct vmspace *vmspace, vm_paddr_t gpa, size_t len, in vmm_mmio_alloc() argument 88 error = vm_map_find(&vmspace->vm_map, obj, 0, &gpa, len, 0, in vmm_mmio_alloc() 113 vmm_mmio_free(struct vmspace *vmspace, vm_paddr_t gpa, size_t len) in vmm_mmio_free() argument 116 vm_map_remove(&vmspace->vm_map, gpa, gpa + len); in vmm_mmio_free()
|
| H A D | vmm_mem.h | 34 struct vmspace; 38 struct vm_object *vmm_mmio_alloc(struct vmspace *, vm_paddr_t gpa, size_t len, 40 void vmm_mmio_free(struct vmspace *, vm_paddr_t gpa, size_t size);
|
| H A D | vmm.c | 176 struct vmspace *vmspace; /* (o) guest's address space */ member 226 DEFINE_VMMOPS_IFUNC(void, vmspace_free, (struct vmspace *vmspace)) 474 struct vmspace *vmspace; in vm_create() local 487 if (vmspace == NULL) in vm_create() 492 vm->vmspace = vmspace; in vm_create() 582 vmmops_vmspace_free(vm->vmspace); in vm_cleanup() 583 vm->vmspace = NULL; in vm_cleanup() 1447 map = &vm->vmspace->vm_map; in vm_handle_paging() 1723 pmap = vmspace_pmap(vm->vmspace); in vm_run() 2529 struct vmspace * [all …]
|
| /f-stack/freebsd/vm/ |
| H A D | vm_extern.h | 40 struct vmspace; 99 struct vmspace *, int); 113 struct vmspace *vmspace_alloc(vm_offset_t, vm_offset_t, pmap_pinit_t); 114 struct vmspace *vmspace_fork(struct vmspace *, vm_ooffset_t *); 118 struct vmspace *vmspace_acquire_ref(struct proc *); 119 void vmspace_free(struct vmspace *); 121 void vmspace_switch_aio(struct vmspace *);
|
| H A D | vm_map.h | 286 struct vmspace { struct 307 vmspace_pmap(struct vmspace *vmspace) in vmspace_pmap() argument 309 return &vmspace->vm_pmap; in vmspace_pmap() 357 long vmspace_resident_count(struct vmspace *vmspace); 532 long vmspace_swap_count(struct vmspace *vmspace);
|
| H A D | vm_map.c | 292 struct vmspace *vm; in vmspace_zinit() 310 struct vmspace *vm; in vmspace_zdtor() 324 struct vmspace * 327 struct vmspace *vm; in vmspace_alloc() 403 struct vmspace *vm; in vmspace_exitfree() 416 struct vmspace *vm; in vmspace_exit() 466 struct vmspace * 469 struct vmspace *vm; in vmspace_acquire_ref() 912 vmspace_resident_count(struct vmspace *vmspace) in vmspace_resident_count() argument 4277 struct vmspace * [all …]
|
| H A D | vm_unix.c | 92 struct vmspace *vm = td->td_proc->p_vmspace; in kern_break()
|
| /f-stack/freebsd/amd64/vmm/amd/ |
| H A D | npt.c | 76 struct vmspace * 84 svm_npt_free(struct vmspace *vmspace) in svm_npt_free() argument 87 vmspace_free(vmspace); in svm_npt_free()
|
| H A D | npt.h | 35 struct vmspace *svm_npt_alloc(vm_offset_t min, vm_offset_t max); 36 void svm_npt_free(struct vmspace *vmspace);
|
| /f-stack/freebsd/amd64/vmm/intel/ |
| H A D | ept.h | 38 struct vmspace *ept_vmspace_alloc(vm_offset_t min, vm_offset_t max); 39 void ept_vmspace_free(struct vmspace *vmspace);
|
| H A D | ept.c | 184 struct vmspace * 192 ept_vmspace_free(struct vmspace *vmspace) in ept_vmspace_free() argument 195 vmspace_free(vmspace); in ept_vmspace_free()
|
| /f-stack/freebsd/kern/ |
| H A D | imgact_aout.c | 159 struct vmspace *vmspace; in exec_aout_imgact() local 275 vmspace = imgp->proc->p_vmspace; in exec_aout_imgact() 278 map = &vmspace->vm_map; in exec_aout_imgact() 322 vmspace->vm_tsize = a_out->a_text >> PAGE_SHIFT; in exec_aout_imgact() 323 vmspace->vm_dsize = (a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_aout_imgact() 324 vmspace->vm_taddr = (caddr_t) (uintptr_t) virtual_offset; in exec_aout_imgact() 325 vmspace->vm_daddr = (caddr_t) (uintptr_t) in exec_aout_imgact()
|
| H A D | kern_exec.c | 219 struct vmspace *oldvmspace; in sys_execve() 245 struct vmspace *oldvmspace; in sys_fexecve() 276 struct vmspace *oldvmspace; in sys___mac_execve() 346 struct vmspace *oldvmspace) in kern_execve() 362 struct vmspace *oldvmspace) in do_execve() 1040 struct vmspace *vmspace = p->p_vmspace; in exec_new_vmspace() local 1065 map = &vmspace->vm_map; in exec_new_vmspace() 1074 shmexit(vmspace); in exec_new_vmspace() 1075 pmap_remove_pages(vmspace_pmap(vmspace)); in exec_new_vmspace() 1089 vmspace = p->p_vmspace; in exec_new_vmspace() [all …]
|
| H A D | sysv_ipc.c | 55 void (*shmexit_hook)(struct vmspace *) = NULL; 70 shmexit(struct vmspace *vm) in shmexit()
|
| H A D | imgact_elf.c | 886 struct vmspace *vmspace; in __elfN() local 950 vmspace = imgp->proc->p_vmspace; in __elfN() 951 vmspace->vm_tsize = text_size >> PAGE_SHIFT; in __elfN() 952 vmspace->vm_taddr = (caddr_t)(uintptr_t)text_addr; in __elfN() 953 vmspace->vm_dsize = data_size >> PAGE_SHIFT; in __elfN() 954 vmspace->vm_daddr = (caddr_t)(uintptr_t)data_addr; in __elfN() 1073 struct vmspace *vmspace; in __CONCAT() local 1249 vmspace = imgp->proc->p_vmspace; in __CONCAT() 1250 map = &vmspace->vm_map; in __CONCAT() 1284 addr = round_page((vm_offset_t)vmspace->vm_daddr + lim_max(td, in __CONCAT()
|
| H A D | sysv_shm.c | 131 static int shm_delete_mapping(struct vmspace *vm, struct shmmap_state *); 141 static void shmexit_myhook(struct vmspace *vm); 271 shm_delete_mapping(struct vmspace *vm, struct shmmap_state *shmmap_s) in shm_delete_mapping() 840 shmexit(struct vmspace *vm) in shmexit() 843 shmexit_myhook(struct vmspace *vm) in shmexit()
|
| /f-stack/freebsd/sys/ |
| H A D | imgact.h | 102 struct vmspace; 115 void exec_cleanup(struct thread *td, struct vmspace *); 126 int pre_execve(struct thread *td, struct vmspace **oldvmspace); 127 void post_execve(struct thread *td, int error, struct vmspace *oldvmspace);
|
| H A D | ipc.h | 132 struct vmspace; 142 extern void (*shmexit_hook)(struct vmspace *);
|
| H A D | shm.h | 152 struct vmspace; 156 void shmexit(struct vmspace *);
|
| H A D | umtx.h | 173 struct vmspace *vs;
|
| /f-stack/freebsd/amd64/include/ |
| H A D | vmm.h | 153 struct vmspace; 182 typedef struct vmspace * (*vmi_vmspace_alloc)(vm_offset_t min, vm_offset_t max); 183 typedef void (*vmi_vmspace_free)(struct vmspace *vmspace); 379 struct vmspace *vm_get_vmspace(struct vm *vm);
|
| /f-stack/freebsd/arm/include/ |
| H A D | pcpu.h | 42 struct vmspace;
|
| /f-stack/freebsd/arm/arm/ |
| H A D | genassym.c | 127 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
|
| /f-stack/tools/compat/include/sys/ |
| H A D | user.h | 129 struct vmspace *ki_vmspace; /* pointer to kernel vmspace struct */
|