Home
last modified time | relevance | path

Searched refs:vm_flags (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.7/kernel/src/mm/
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() argument
331 vma->vm_flags = vm_flags; in mm_create_vma()
369 if (vma->vm_flags & VM_IO) // 对于mmio的内存,创建新的page结构体 in mm_map_vma()
406 if (vma->vm_flags & VM_USER) in mm_map_vma()
426 if (vma->vm_flags & VM_USER) in mm_map_vma()
441 if (vma->vm_flags & VM_USER) in mm_map_vma()
454 if (vma->vm_flags & VM_IO) in mm_map_vma()
Dmm-types.h126 vm_flags_t vm_flags; // 虚拟内存区域的标志位, 具体可选值请见mm.h member
Dmmio_buddy.rs448 vm_flags: vm_flags_t, in create_mmio()
477 let flags: u64 = vm_flags | (VM_IO | VM_DONTCOPY) as u64; in create_mmio()
698 vm_flags: vm_flags_t, in mmio_create()
702 if let Err(err) = MMIO_POOL.create_mmio(size, vm_flags, res_vaddr, res_length) { in mmio_create()
Dmm.h349 return vma->vm_flags & VM_ACCESS_FLAGS; in vma_is_accessible()
455 int mm_create_vma(struct mm_struct *mm, uint64_t vaddr, uint64_t length, vm_flags_t vm_flags,
/DragonOS-0.1.7/kernel/src/process/
Dfork.c222 if (vma->vm_end > USER_MAX_LINEAR_ADDR || vma->vm_flags & VM_DONTCOPY) in process_copy_mm()
238 … int ret = mm_create_vma(new_mms, vma->vm_start + i * PAGE_2M_SIZE, PAGE_2M_SIZE, vma->vm_flags, in process_copy_mm()
257 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm()
/DragonOS-0.1.7/docs/kernel/memory_management/
Dmmio.md188 | mmio_create(size,vm_flags,res_vaddr,res_length) | 创建一块根据size对齐后的大小的mmio区域,并将其vma绑定到initial_mm |