Home
last modified time | relevance | path

Searched refs:vm_area_struct (Results 1 – 9 of 9) sorted by relevance

/DragonOS-0.1.5/kernel/src/mm/
Dinternal.h16 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev);
24 void __vma_unlink_list(struct mm_struct *mm, struct vm_area_struct *vma);
60 int __anon_vma_add(struct anon_vma_t *anon_vma, struct vm_area_struct *vma);
68 int __anon_vma_del(struct vm_area_struct *vma);
Dvma.c11 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm) in vm_area_alloc()
13 struct vm_area_struct *vma = (struct vm_area_struct *)kmalloc(sizeof(struct vm_area_struct), 0); in vm_area_alloc()
24 void vm_area_del(struct vm_area_struct *vma) in vm_area_del()
36 void vm_area_free(struct vm_area_struct *vma) in vm_area_free()
50 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev) in __vma_link_list()
52 struct vm_area_struct *next = NULL; in __vma_link_list()
77 void __vma_unlink_list(struct mm_struct *mm, struct vm_area_struct *vma) in __vma_unlink_list()
79 struct vm_area_struct *prev, *next; in __vma_unlink_list()
98 struct vm_area_struct *vma_find(struct mm_struct *mm, uint64_t addr) in vma_find()
100 struct vm_area_struct *vma = mm->vmas; in vma_find()
[all …]
Dmm.h185 void (*open)(struct vm_area_struct *area);
190 void (*close)(struct vm_area_struct *area);
322 static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) in vma_init()
324 memset(vma, 0, sizeof(struct vm_area_struct)); in vma_init()
338 static inline bool vma_is_foreign(struct vm_area_struct *vma) in vma_is_foreign()
347 static inline bool vma_is_accessible(struct vm_area_struct *vma) in vma_is_accessible()
358 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm);
365 void vm_area_free(struct vm_area_struct *vma);
372 void vm_area_del(struct vm_area_struct *vma);
381 struct vm_area_struct *vma_find(struct mm_struct *mm, uint64_t addr);
[all …]
Dmm-types.h118 struct vm_area_struct struct
120 struct vm_area_struct *vm_prev, *vm_next; argument
145 struct vm_area_struct *vmas; // VMA列表 argument
Dmmap.c320 …t64_t length, vm_flags_t vm_flags, struct vm_operations_t *vm_ops, struct vm_area_struct **res_vma) in mm_create_vma()
327 struct vm_area_struct *vma = vm_area_alloc(mm); in mm_create_vma()
360 int mm_map_vma(struct vm_area_struct *vma, uint64_t paddr, uint64_t offset, uint64_t length) in mm_map_vma()
480 struct vm_area_struct *vma = vma_find(mm, vaddr + mapped); in mm_map()
516 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr) in mm_unmap_vma()
555 struct vm_area_struct *vma = vma_find(mm, vaddr + unmapped); in mm_unmap()
Dmmio_buddy.rs5 initial_mm, mm_create_vma, mm_unmap, vm_area_del, vm_area_free, vm_area_struct, vm_flags_t,
485 let vma: *mut *mut vm_area_struct = null_mut(); in create_mmio()
515 let vma: *mut *mut vm_area_struct = null_mut(); in create_mmio()
568 let vma: *mut vm_area_struct = unsafe { vma_find(&mut initial_mm, vaddr + loop_i) }; in release_mmio()
Dmm.c640 struct vm_area_struct *vma = NULL; in mm_do_brk()
/DragonOS-0.1.5/kernel/src/process/
Dfork.c219 struct vm_area_struct *vma = current_pcb->mm->vmas; in process_copy_mm()
237 struct vm_area_struct *new_vma = NULL; in process_copy_mm()
256 struct vm_area_struct *new_vma = NULL; in process_copy_mm()
Dprocess.c290 struct vm_area_struct *vma = NULL; in process_load_elf_file()
313 struct vm_area_struct *vma = NULL; in process_load_elf_file()
375 struct vm_area_struct *vma = NULL; in process_load_elf_file()
820 struct vm_area_struct *vma = pcb->mm->vmas; in process_exit_mm()
824 struct vm_area_struct *cur_vma = vma; in process_exit_mm()