Home
last modified time | relevance | path

Searched refs:vmspace (Results 1 – 25 of 51) sorted by relevance

123

/f-stack/freebsd/i386/linux/
H A Dimgact_linux.c64 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 Dvmm_mem.c61 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 Dvmm_mem.h34 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 Dvmm.c176 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 Dvm_extern.h40 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 Dvm_map.h286 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 Dvm_map.c292 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 Dvm_unix.c92 struct vmspace *vm = td->td_proc->p_vmspace; in kern_break()
/f-stack/freebsd/amd64/vmm/amd/
H A Dnpt.c76 struct vmspace *
84 svm_npt_free(struct vmspace *vmspace) in svm_npt_free() argument
87 vmspace_free(vmspace); in svm_npt_free()
H A Dnpt.h35 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 Dept.h38 struct vmspace *ept_vmspace_alloc(vm_offset_t min, vm_offset_t max);
39 void ept_vmspace_free(struct vmspace *vmspace);
H A Dept.c184 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 Dimgact_aout.c159 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 Dkern_exec.c219 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 Dsysv_ipc.c55 void (*shmexit_hook)(struct vmspace *) = NULL;
70 shmexit(struct vmspace *vm) in shmexit()
H A Dimgact_elf.c886 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 Dsysv_shm.c131 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 Dimgact.h102 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 Dipc.h132 struct vmspace;
142 extern void (*shmexit_hook)(struct vmspace *);
H A Dshm.h152 struct vmspace;
156 void shmexit(struct vmspace *);
H A Dumtx.h173 struct vmspace *vs;
/f-stack/freebsd/amd64/include/
H A Dvmm.h153 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 Dpcpu.h42 struct vmspace;
/f-stack/freebsd/arm/arm/
H A Dgenassym.c127 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
/f-stack/tools/compat/include/sys/
H A Duser.h129 struct vmspace *ki_vmspace; /* pointer to kernel vmspace struct */

123