Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/mm/
Dmmio.c19 int mmio_create(uint32_t size, vm_flags_t vm_flags, uint64_t *res_vaddr, uint64_t *res_size) in mmio_create() argument
50 vm_flags |= (VM_IO | VM_DONTCOPY); in mmio_create()
57 … retval = mm_create_vma(&initial_mm, buddy_region->vaddr + i, PAGE_2M_SIZE, vm_flags, NULL, NULL); in mmio_create()
64 … retval = mm_create_vma(&initial_mm, buddy_region->vaddr + i, PAGE_4K_SIZE, vm_flags, NULL, NULL); in mmio_create()
Dmmio.h15 int mmio_create(uint32_t size, vm_flags_t vm_flags, uint64_t * res_vaddr, uint64_t *res_size);
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
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.2/kernel/src/process/
Dfork.c247 if (vma->vm_end > USER_MAX_LINEAR_ADDR || vma->vm_flags & VM_DONTCOPY) in process_copy_mm()
263 … int ret = mm_create_vma(new_mms, vma->vm_start + i * PAGE_2M_SIZE, PAGE_2M_SIZE, vma->vm_flags, in process_copy_mm()
282 … int ret = mm_create_vma(new_mms, vma->vm_start, map_size, vma->vm_flags, vma->vm_ops, &new_vma); in process_copy_mm()