Home
last modified time | relevance | path

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

123

/freebsd/sys/i386/linux/
H A Dimgact_linux.c61 struct vmspace *vmspace; in exec_linux_imgact() local
123 vmspace = imgp->proc->p_vmspace; in exec_linux_imgact()
138 error = vm_map_find(&vmspace->vm_map, NULL, 0, &vmaddr, in exec_linux_imgact()
157 error = vm_map_protect(&vmspace->vm_map, vmaddr, in exec_linux_imgact()
170 error = vm_mmap(&vmspace->vm_map, &vmaddr, in exec_linux_imgact()
185 error = vm_map_protect(&vmspace->vm_map, vmaddr + a_out->a_text, in exec_linux_imgact()
196 error = vm_map_find(&vmspace->vm_map, NULL, 0, &vmaddr, in exec_linux_imgact()
207 vmspace->vm_tsize = round_page(a_out->a_text) >> PAGE_SHIFT; in exec_linux_imgact()
208 vmspace->vm_dsize = round_page(a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_linux_imgact()
209 vmspace->vm_taddr = (caddr_t)(void *)(uintptr_t)virtual_offset; in exec_linux_imgact()
[all …]
/freebsd/sys/amd64/vmm/
H A Dvmm_mem_machdep.c50 vmm_mmio_alloc(struct vmspace *vmspace, vm_paddr_t gpa, size_t len, in vmm_mmio_alloc() argument
82 vm_map_lock(&vmspace->vm_map); in vmm_mmio_alloc()
83 error = vm_map_insert(&vmspace->vm_map, obj, 0, gpa, gpa + len, in vmm_mmio_alloc()
85 vm_map_unlock(&vmspace->vm_map); in vmm_mmio_alloc()
110 vmm_mmio_free(struct vmspace *vmspace, vm_paddr_t gpa, size_t len) in vmm_mmio_free() argument
113 vm_map_remove(&vmspace->vm_map, gpa, gpa + len); in vmm_mmio_free()
H A Dvmm_mem.h32 struct vmspace;
34 int vmm_mmio_alloc(struct vmspace *, vm_paddr_t gpa, size_t len,
36 void vmm_mmio_free(struct vmspace *, vm_paddr_t gpa, size_t size);
/freebsd/sys/vm/
H A Dvm_extern.h37 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.h298 struct vmspace {
314 * variations of the machine-independent fields in the vmspace. in vmspace_pmap()
321 vmspace_pmap(struct vmspace *vmspace)
323 return &vmspace->vm_pmap;
371 long vmspace_resident_count(struct vmspace *vmspace);
551 long vmspace_swap_count(struct vmspace *vmspace);
288 struct vmspace { global() struct
304 vm_refcntvmspace global() argument
311 vmspace_pmap(struct vmspace * vmspace) vmspace_pmap() argument
/freebsd/sys/amd64/vmm/amd/
H A Dnpt.c73 struct vmspace *
81 svm_npt_free(struct vmspace *vmspace) in svm_npt_free() argument
84 vmspace_free(vmspace); in svm_npt_free()
H A Dnpt.h33 struct vmspace *svm_npt_alloc(vm_offset_t min, vm_offset_t max);
34 void svm_npt_free(struct vmspace *vmspace);
/freebsd/sys/kern/
H A Dimgact_aout.c175 struct vmspace *vmspace; in exec_aout_imgact() local
293 vmspace = imgp->proc->p_vmspace; in exec_aout_imgact()
296 map = &vmspace->vm_map; in exec_aout_imgact()
340 vmspace->vm_tsize = a_out->a_text >> PAGE_SHIFT; in exec_aout_imgact()
341 vmspace->vm_dsize = (a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_aout_imgact()
342 vmspace->vm_taddr = (caddr_t) (uintptr_t) virtual_offset; in exec_aout_imgact()
343 vmspace->vm_daddr = (caddr_t) (uintptr_t) in exec_aout_imgact()
H A Dkern_exec.c128 struct mac *mac_p, struct vmspace *oldvmspace);
228 struct vmspace *oldvmspace; in sys_execve()
253 struct vmspace *oldvmspace; in sys_fexecve()
283 struct vmspace *oldvmspace; in sys___mac_execve()
301 pre_execve(struct thread *td, struct vmspace **oldvmspace) in pre_execve()
322 post_execve(struct thread *td, int error, struct vmspace *oldvmspace) in post_execve()
352 struct vmspace *oldvmspace) in kern_execve()
394 struct vmspace *oldvmspace) in do_execve()
1063 exec_cleanup(struct thread *td, struct vmspace *oldvmspace) in exec_cleanup()
1134 struct vmspace *vmspace; in exec_free_abi_mappings() local
[all …]
H A Dimgact_elf.c934 struct vmspace *vmspace; in __elfN() local
998 vmspace = imgp->proc->p_vmspace; in __elfN()
999 vmspace->vm_tsize = text_size >> PAGE_SHIFT; in __elfN()
1000 vmspace->vm_taddr = (caddr_t)(uintptr_t)text_addr; in __elfN()
1001 vmspace->vm_dsize = data_size >> PAGE_SHIFT; in __elfN()
1002 vmspace->vm_daddr = (caddr_t)(uintptr_t)data_addr; in __elfN()
1109 struct vmspace *vmspace; in __CONCAT() local
1328 vmspace = imgp->proc->p_vmspace; in __CONCAT()
1329 map = &vmspace->vm_map; in __CONCAT()
1365 addr = round_page((vm_offset_t)vmspace->vm_daddr + lim_max(td, in __CONCAT()
[all …]
H A Dkern_proc.c1143 struct vmspace *vm = p->p_vmspace; in fill_kinfo_proc_only()
2405 struct vmspace *vm; in sysctl_kern_proc_ovmmap()
2622 struct vmspace *vm; in kern_proc_vmmap_out()
3267 struct vmspace *vmspace; in sysctl_kern_proc_vm_layout() local
3285 vmspace = vmspace_acquire_ref(p); in sysctl_kern_proc_vm_layout()
3289 kvm.kvm_min_user_addr = vm_map_min(&vmspace->vm_map); in sysctl_kern_proc_vm_layout()
3290 kvm.kvm_max_user_addr = vm_map_max(&vmspace->vm_map); in sysctl_kern_proc_vm_layout()
3291 kvm.kvm_text_addr = (uintptr_t)vmspace->vm_taddr; in sysctl_kern_proc_vm_layout()
3292 kvm.kvm_text_size = vmspace->vm_tsize; in sysctl_kern_proc_vm_layout()
3293 kvm.kvm_data_addr = (uintptr_t)vmspace->vm_daddr; in sysctl_kern_proc_vm_layout()
[all …]
H A Dsysv_ipc.c52 void (*shmexit_hook)(struct vmspace *) = NULL;
66 shmexit(struct vmspace *vm) in shmexit()
/freebsd/sys/amd64/vmm/intel/
H A Dept.h36 struct vmspace *ept_vmspace_alloc(vm_offset_t min, vm_offset_t max);
37 void ept_vmspace_free(struct vmspace *vmspace);
H A Dept.c179 struct vmspace *
187 ept_vmspace_free(struct vmspace *vmspace) in ept_vmspace_free() argument
190 vmspace_free(vmspace); in ept_vmspace_free()
/freebsd/sys/sys/
H A Dimgact.h102 struct vmspace;
115 void exec_cleanup(struct thread *td, struct vmspace *);
123 int pre_execve(struct thread *td, struct vmspace **oldvmspace);
124 void post_execve(struct thread *td, int error, struct vmspace *oldvmspace);
H A Dipc.h129 struct vmspace;
140 extern void (*shmexit_hook)(struct vmspace *);
H A Dshm.h151 struct vmspace;
160 void shmexit(struct vmspace *);
/freebsd/sys/powerpc/powerpc/
H A Delf_common.c35 struct vmspace *vmspace; in __elfN() local
60 vmspace = imgp->proc->p_vmspace; in __elfN()
87 vmspace->vm_shp_base + imgp->sysent->sv_timekeep_offset); in __elfN()
/freebsd/sys/compat/linux/
H A Dlinux_vdso.c158 struct vmspace *vmspace; in linux_map_vdso() local
165 vmspace = p->p_vmspace; in linux_map_vdso()
166 map = &vmspace->vm_map; in linux_map_vdso()
/freebsd/sys/dev/vmm/
H A Dvmm_mem.h42 struct vmspace;
63 struct vmspace *mem_vmspace;
70 struct vmspace *vm_vmspace(struct vm *vm);
/freebsd/lib/libkvm/
H A Dkvm_proc.c114 struct vmspace vmspace; in kvm_proclist() local
324 (char *)&vmspace, sizeof(vmspace)); in kvm_proclist()
325 kp->ki_size = vmspace.vm_map.size; in kvm_proclist()
331 kp->ki_rssize = pmap_resident_count(&vmspace.vm_pmap); in kvm_proclist()
332 kp->ki_swrss = vmspace.vm_swrss; in kvm_proclist()
333 kp->ki_tsize = vmspace.vm_tsize; in kvm_proclist()
334 kp->ki_dsize = vmspace.vm_dsize; in kvm_proclist()
335 kp->ki_ssize = vmspace.vm_ssize; in kvm_proclist()
/freebsd/sys/riscv/include/
H A Dvmm.h154 DECLARE_VMMOPS_FUNC(struct vmspace *, vmspace_alloc, (vm_offset_t min,
156 DECLARE_VMMOPS_FUNC(void, vmspace_free, (struct vmspace *vmspace));
/freebsd/sys/arm64/include/
H A Dvmm.h167 DECLARE_VMMOPS_FUNC(struct vmspace *, vmspace_alloc, (vm_offset_t min,
169 DECLARE_VMMOPS_FUNC(void, vmspace_free, (struct vmspace *vmspace));
/freebsd/sys/amd64/include/
H A Dvmm.h162 struct vmspace;
192 DECLARE_VMMOPS_FUNC(struct vmspace *, vmspace_alloc,
194 DECLARE_VMMOPS_FUNC(void, vmspace_free, (struct vmspace *vmspace));
/freebsd/sys/riscv/vmm/
H A Dvmm_riscv.c251 struct vmspace *
259 vmmops_vmspace_free(struct vmspace *vmspace) in vmmops_vmspace_free() argument
262 pmap_remove_pages(vmspace_pmap(vmspace)); in vmmops_vmspace_free()
263 vmspace_free(vmspace); in vmmops_vmspace_free()

123