Home
last modified time | relevance | path

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

123

/freebsd-14.2/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-14.2/sys/amd64/vmm/
H A Dvmm_mem.c57 vmm_mmio_alloc(struct vmspace *vmspace, vm_paddr_t gpa, size_t len, in vmm_mmio_alloc() argument
84 error = vm_map_find(&vmspace->vm_map, obj, 0, &gpa, len, 0, in vmm_mmio_alloc()
109 vmm_mmio_free(struct vmspace *vmspace, vm_paddr_t gpa, size_t len) in vmm_mmio_free() argument
112 vm_map_remove(&vmspace->vm_map, gpa, gpa + len); in vmm_mmio_free()
H A Dvmm_mem.h32 struct vmspace;
36 struct vm_object *vmm_mmio_alloc(struct vmspace *, vm_paddr_t gpa, size_t len,
38 void vmm_mmio_free(struct vmspace *, vm_paddr_t gpa, size_t size);
H A Dvmm.c184 struct vmspace *vmspace; /* (o) guest's address space */ member
250 DEFINE_VMMOPS_IFUNC(void, vmspace_free, (struct vmspace *vmspace))
581 struct vmspace *vmspace; in vm_create() local
595 if (vmspace == NULL) in vm_create()
600 vm->vmspace = vmspace; in vm_create()
697 vmmops_vmspace_free(vm->vmspace); in vm_cleanup()
698 vm->vmspace = NULL; in vm_cleanup()
1611 map = &vm->vmspace->vm_map; in vm_handle_paging()
1912 pmap = vmspace_pmap(vm->vmspace); in vm_run()
2654 struct vmspace *
[all …]
/freebsd-14.2/sys/vm/
H A Dvm_extern.h39 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.h290 struct vmspace { struct
313 vmspace_pmap(struct vmspace *vmspace) in vmspace_pmap() argument
315 return &vmspace->vm_pmap; in vmspace_pmap()
363 long vmspace_resident_count(struct vmspace *vmspace);
542 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
4336 struct vmspace *
[all …]
/freebsd-14.2/sys/amd64/vmm/amd/
H A Dnpt.c74 struct vmspace *
82 svm_npt_free(struct vmspace *vmspace) in svm_npt_free() argument
85 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-14.2/sys/kern/
H A Dimgact_aout.c178 struct vmspace *vmspace; in exec_aout_imgact() local
296 vmspace = imgp->proc->p_vmspace; in exec_aout_imgact()
299 map = &vmspace->vm_map; in exec_aout_imgact()
343 vmspace->vm_tsize = a_out->a_text >> PAGE_SHIFT; in exec_aout_imgact()
344 vmspace->vm_dsize = (a_out->a_data + bss_size) >> PAGE_SHIFT; in exec_aout_imgact()
345 vmspace->vm_taddr = (caddr_t) (uintptr_t) virtual_offset; in exec_aout_imgact()
346 vmspace->vm_daddr = (caddr_t) (uintptr_t) in exec_aout_imgact()
H A Dkern_exec.c1107 struct vmspace *vmspace; in exec_free_abi_mappings() local
1109 vmspace = p->p_vmspace; in exec_free_abi_mappings()
1116 pmap_remove(vmspace_pmap(vmspace), vmspace->vm_shp_base, in exec_free_abi_mappings()
1128 struct vmspace *vmspace = p->p_vmspace; in exec_new_vmspace() local
1147 map = &vmspace->vm_map; in exec_new_vmspace()
1157 shmexit(vmspace); in exec_new_vmspace()
1172 vmspace = p->p_vmspace; in exec_new_vmspace()
1173 map = &vmspace->vm_map; in exec_new_vmspace()
1191 struct vmspace *vmspace; in exec_map_stack() local
1219 vmspace = p->p_vmspace; in exec_map_stack()
[all …]
H A Dimgact_elf.c925 struct vmspace *vmspace; in __elfN() local
989 vmspace = imgp->proc->p_vmspace; in __elfN()
990 vmspace->vm_tsize = text_size >> PAGE_SHIFT; in __elfN()
991 vmspace->vm_taddr = (caddr_t)(uintptr_t)text_addr; in __elfN()
992 vmspace->vm_dsize = data_size >> PAGE_SHIFT; in __elfN()
993 vmspace->vm_daddr = (caddr_t)(uintptr_t)data_addr; in __elfN()
1100 struct vmspace *vmspace; in __CONCAT() local
1317 vmspace = imgp->proc->p_vmspace; in __CONCAT()
1318 map = &vmspace->vm_map; in __CONCAT()
1433 struct vmspace *vmspace; in __elfN() local
[all …]
H A Dsysv_ipc.c52 void (*shmexit_hook)(struct vmspace *) = NULL;
66 shmexit(struct vmspace *vm) in shmexit()
H A Dkern_proc.c1144 struct vmspace *vm = p->p_vmspace; in fill_kinfo_proc_only()
2407 struct vmspace *vm; in sysctl_kern_proc_ovmmap()
2618 struct vmspace *vm; in kern_proc_vmmap_out()
3275 struct vmspace *vmspace; in sysctl_kern_proc_vm_layout() local
3293 vmspace = vmspace_acquire_ref(p); in sysctl_kern_proc_vm_layout()
3300 kvm.kvm_text_size = vmspace->vm_tsize; in sysctl_kern_proc_vm_layout()
3302 kvm.kvm_data_size = vmspace->vm_dsize; in sysctl_kern_proc_vm_layout()
3304 kvm.kvm_stack_size = vmspace->vm_ssize; in sysctl_kern_proc_vm_layout()
3305 kvm.kvm_shp_addr = vmspace->vm_shp_base; in sysctl_kern_proc_vm_layout()
3309 if ((vmspace->vm_map.flags & MAP_ASLR) != 0) in sysctl_kern_proc_vm_layout()
[all …]
/freebsd-14.2/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.c180 struct vmspace *
188 ept_vmspace_free(struct vmspace *vmspace) in ept_vmspace_free() argument
191 vmspace_free(vmspace); in ept_vmspace_free()
/freebsd-14.2/sys/sys/
H A Dimgact.h102 struct vmspace;
115 void exec_cleanup(struct thread *td, struct vmspace *);
124 int pre_execve(struct thread *td, struct vmspace **oldvmspace);
125 void post_execve(struct thread *td, int error, struct vmspace *oldvmspace);
H A Dipc.h131 struct vmspace;
142 extern void (*shmexit_hook)(struct vmspace *);
H A Dshm.h151 struct vmspace;
160 void shmexit(struct vmspace *);
H A Dumtxvar.h68 struct vmspace *vs;
/freebsd-14.2/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-14.2/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-14.2/lib/libkvm/
H A Dkvm_proc.c116 struct vmspace vmspace; in kvm_proclist() local
323 (char *)&vmspace, sizeof(vmspace)); in kvm_proclist()
324 kp->ki_size = vmspace.vm_map.size; in kvm_proclist()
330 kp->ki_rssize = pmap_resident_count(&vmspace.vm_pmap); in kvm_proclist()
331 kp->ki_swrss = vmspace.vm_swrss; in kvm_proclist()
332 kp->ki_tsize = vmspace.vm_tsize; in kvm_proclist()
333 kp->ki_dsize = vmspace.vm_dsize; in kvm_proclist()
334 kp->ki_ssize = vmspace.vm_ssize; in kvm_proclist()
/freebsd-14.2/sys/amd64/include/
H A Dvmm.h159 struct vmspace;
187 typedef struct vmspace * (*vmi_vmspace_alloc)(vm_offset_t min, vm_offset_t max);
188 typedef void (*vmi_vmspace_free)(struct vmspace *vmspace);
402 struct vmspace *vm_get_vmspace(struct vm *vm);
/freebsd-14.2/sys/arm/include/
H A Dpcpu.h39 struct vmspace;

123