Home
last modified time | relevance | path

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

123

/freebsd-13.1/sys/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 …]
/freebsd-13.1/sys/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
488 if (vmspace == NULL) in vm_create()
493 vm->vmspace = vmspace; in vm_create()
583 vmmops_vmspace_free(vm->vmspace); in vm_cleanup()
584 vm->vmspace = NULL; in vm_cleanup()
1464 map = &vm->vmspace->vm_map; in vm_handle_paging()
1740 pmap = vmspace_pmap(vm->vmspace); in vm_run()
2546 struct vmspace *
[all …]
/freebsd-13.1/sys/vm/
H A Dvm_extern.h40 struct vmspace;
101 struct vmspace *, int);
115 struct vmspace *vmspace_alloc(vm_offset_t, vm_offset_t, pmap_pinit_t);
116 struct vmspace *vmspace_fork(struct vmspace *, vm_ooffset_t *);
120 struct vmspace *vmspace_acquire_ref(struct proc *);
121 void vmspace_free(struct vmspace *);
123 void vmspace_switch_aio(struct vmspace *);
H A Dvm_map.h287 struct vmspace { struct
309 vmspace_pmap(struct vmspace *vmspace) in vmspace_pmap() argument
311 return &vmspace->vm_pmap; in vmspace_pmap()
359 long vmspace_resident_count(struct vmspace *vmspace);
534 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()
881 vmspace_resident_count(struct vmspace *vmspace) in vmspace_resident_count() argument
4248 struct vmspace *
[all …]
/freebsd-13.1/sys/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);
/freebsd-13.1/sys/kern/
H A Dimgact_aout.c180 struct vmspace *vmspace; in exec_aout_imgact() local
298 vmspace = imgp->proc->p_vmspace; in exec_aout_imgact()
301 map = &vmspace->vm_map; in exec_aout_imgact()
345 vmspace->vm_tsize = a_out->a_text >> PAGE_SHIFT; in exec_aout_imgact()
346 vmspace->vm_dsize = (a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_aout_imgact()
347 vmspace->vm_taddr = (caddr_t) (uintptr_t) virtual_offset; in exec_aout_imgact()
348 vmspace->vm_daddr = (caddr_t) (uintptr_t) in exec_aout_imgact()
H A Dkern_exec.c224 struct vmspace *oldvmspace; in sys_execve()
1106 struct vmspace *vmspace; in exec_free_abi_mappings() local
1109 vmspace = p->p_vmspace; in exec_free_abi_mappings()
1130 struct vmspace *vmspace = p->p_vmspace; in exec_new_vmspace() local
1152 map = &vmspace->vm_map; in exec_new_vmspace()
1162 shmexit(vmspace); in exec_new_vmspace()
1177 vmspace = p->p_vmspace; in exec_new_vmspace()
1178 map = &vmspace->vm_map; in exec_new_vmspace()
1210 struct vmspace *vmspace; in exec_map_stack() local
1236 vmspace = p->p_vmspace; in exec_map_stack()
[all …]
H A Dsysv_ipc.c55 void (*shmexit_hook)(struct vmspace *) = NULL;
70 shmexit(struct vmspace *vm) in shmexit()
H A Dimgact_elf.c911 struct vmspace *vmspace; in __elfN() local
975 vmspace = imgp->proc->p_vmspace; in __elfN()
976 vmspace->vm_tsize = text_size >> PAGE_SHIFT; in __elfN()
977 vmspace->vm_taddr = (caddr_t)(uintptr_t)text_addr; in __elfN()
978 vmspace->vm_dsize = data_size >> PAGE_SHIFT; in __elfN()
979 vmspace->vm_daddr = (caddr_t)(uintptr_t)data_addr; in __elfN()
1098 struct vmspace *vmspace; in __CONCAT() local
1306 vmspace = imgp->proc->p_vmspace; in __CONCAT()
1307 map = &vmspace->vm_map; in __CONCAT()
1343 addr = round_page((vm_offset_t)vmspace->vm_daddr + lim_max(td, in __CONCAT()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/sys/
H A Dimgact.h101 struct vmspace;
114 void exec_cleanup(struct thread *td, struct vmspace *);
125 int pre_execve(struct thread *td, struct vmspace **oldvmspace);
126 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.h176 struct vmspace *vs;
/freebsd-13.1/lib/libkvm/
H A Dkvm_proc.c122 struct vmspace vmspace; in kvm_proclist() local
329 (char *)&vmspace, sizeof(vmspace)); in kvm_proclist()
330 kp->ki_size = vmspace.vm_map.size; in kvm_proclist()
336 kp->ki_rssize = pmap_resident_count(&vmspace.vm_pmap); in kvm_proclist()
337 kp->ki_swrss = vmspace.vm_swrss; in kvm_proclist()
338 kp->ki_tsize = vmspace.vm_tsize; in kvm_proclist()
339 kp->ki_dsize = vmspace.vm_dsize; in kvm_proclist()
340 kp->ki_ssize = vmspace.vm_ssize; in kvm_proclist()
/freebsd-13.1/sys/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);
380 struct vmspace *vm_get_vmspace(struct vm *vm);
/freebsd-13.1/sys/arm/include/
H A Dpcpu.h42 struct vmspace;
/freebsd-13.1/sys/compat/cloudabi/
H A Dcloudabi_proc.c50 struct vmspace *oldvmspace; in cloudabi_sys_proc_exec()
/freebsd-13.1/sys/fs/procfs/
H A Dprocfs_map.c82 struct vmspace *vm; in procfs_doprocmap()
/freebsd-13.1/sys/arm/arm/
H A Dgenassym.c127 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));

123