Home
last modified time | relevance | path

Searched refs:mm_struct (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.7/kernel/src/mm/
Dmod.rs1 use crate::include::bindings::bindings::{mm_struct, process_control_block, PAGE_OFFSET};
24 unsafe impl Send for mm_struct {} implementation
25 unsafe impl Sync for mm_struct {} implementation
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);
33 uint64_t __mm_get_paddr(struct mm_struct *mm, uint64_t vaddr);
Dmm.h322 static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) in vma_init()
358 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm);
381 struct vm_area_struct *vma_find(struct mm_struct *mm, uint64_t addr);
390 int vma_insert(struct mm_struct *mm, struct vm_area_struct *vma);
455 int mm_create_vma(struct mm_struct *mm, uint64_t vaddr, uint64_t length, vm_flags_t vm_flags,
478 int mm_map(struct mm_struct *mm, uint64_t vaddr, uint64_t length, uint64_t paddr);
488 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr);
499 int mm_unmap(struct mm_struct *mm, uint64_t vaddr, uint64_t length, bool destroy);
Dmm-types.h7 struct mm_struct;
125 struct mm_struct *vm_mm; // 虚拟内存区域对应的mm结构体
142 struct mm_struct struct
Dvma.c11 struct vm_area_struct *vm_area_alloc(struct mm_struct *mm) in vm_area_alloc()
50 void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev) in __vma_link_list()
77 void __vma_unlink_list(struct mm_struct *mm, struct vm_area_struct *vma) in __vma_unlink_list()
98 struct vm_area_struct *vma_find(struct mm_struct *mm, uint64_t addr) in vma_find()
121 int vma_insert(struct mm_struct *mm, struct vm_area_struct *vma) in vma_insert()
Dutils.c12 uint64_t __mm_get_paddr(struct mm_struct *mm, uint64_t vaddr) in __mm_get_paddr()
Dmmap.c320 int mm_create_vma(struct mm_struct *mm, uint64_t vaddr, uint64_t length, vm_flags_t vm_flags, struc… in mm_create_vma()
473 int mm_map(struct mm_struct *mm, uint64_t vaddr, uint64_t length, uint64_t paddr) in mm_map()
516 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr) in mm_unmap_vma()
550 int mm_unmap(struct mm_struct *mm, uint64_t vaddr, uint64_t length, bool destroy) in mm_unmap()
Dmm.c15 struct mm_struct initial_mm = {0};
/DragonOS-0.1.7/kernel/src/process/
Dfork.c198 struct mm_struct *new_mms = (struct mm_struct *)kmalloc(sizeof(struct mm_struct), 0); in process_copy_mm()
199 memset(new_mms, 0, sizeof(struct mm_struct)); in process_copy_mm()
201 memcpy(new_mms, current_pcb->mm, sizeof(struct mm_struct)); in process_copy_mm()
Dproc-types.h91 struct mm_struct *mm;
Dprocess.h184 extern struct mm_struct initial_mm;
Dprocess.c42 extern struct mm_struct initial_mm;
423 struct mm_struct *new_mms = (struct mm_struct *)kmalloc(sizeof(struct mm_struct), 0); in do_execve()
424 memset(new_mms, 0, sizeof(struct mm_struct)); in do_execve()
/DragonOS-0.1.7/kernel/src/syscall/
Dsyscall.c197 struct mm_struct *mm = current_pcb->mm; in sys_brk()
/DragonOS-0.1.7/kernel/src/driver/pci/
Dpci.rs6 initial_mm, mm_map, mm_struct, PAGE_2M_SIZE, VM_DONTCOPY, VM_IO,
554 let initial_mm_ptr = &mut initial_mm as *mut mm_struct; in map()
1329 let initial_mm_ptr = &mut initial_mm as *mut mm_struct; in pci_bar_init()