Home
last modified time | relevance | path

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

/DragonOS-0.1.2/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.c91 struct vm_area_struct *vma = vma_find(&initial_mm, vaddr + i); in mmio_release()
Dmm.c640 struct vm_area_struct *vma = NULL; in mm_do_brk()
/DragonOS-0.1.2/kernel/src/process/
Dfork.c244 struct vm_area_struct *vma = current_pcb->mm->vmas; in process_copy_mm()
262 struct vm_area_struct *new_vma = NULL; in process_copy_mm()
281 struct vm_area_struct *new_vma = NULL; in process_copy_mm()
Dprocess.c264 struct vm_area_struct *vma = NULL; in process_load_elf_file()
287 struct vm_area_struct *vma = NULL; in process_load_elf_file()
323 struct vm_area_struct *vma = NULL; in process_load_elf_file()
754 struct vm_area_struct *vma = pcb->mm->vmas; in process_exit_mm()
758 struct vm_area_struct *cur_vma = vma; in process_exit_mm()