Home
last modified time | relevance | path

Searched refs:VM_WRITE (Results 1 – 7 of 7) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dmm.h127 #define VM_WRITE (1 << 1) macro
137 #define VM_ACCESS_FLAGS (VM_READ | VM_WRITE | VM_EXEC)
H A Dsyscall.rs175 vm_flags |= VmFlags::VM_WRITE; in from()
193 vm_flags |= VmFlags::VM_READ | VmFlags::VM_WRITE; in from()
240 if value.contains(VmFlags::VM_WRITE) { in from()
H A Dmod.rs48 const VM_WRITE = 0x00000002; constant
685 VmFlags::VM_READ | VmFlags::VM_WRITE | VmFlags::VM_EXEC | VmFlags::VM_SHARED, in vm_get_page_prot()
H A Ducontext.rs1192 .contains(VmFlags::VM_SHARED | VmFlags::VM_WRITE) in unmap()
1305 let vm_access_flags: VmFlags = VmFlags::VM_READ | VmFlags::VM_WRITE | VmFlags::VM_EXEC; in is_accessible()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs293 map[VmFlags::VM_WRITE.bits()] = MMArch::PAGE_COPY;
294 map[VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] = MMArch::PAGE_COPY;
297 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits()] = MMArch::PAGE_COPY_EXEC;
298 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
302 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_WRITE.bits()] = MMArch::PAGE_SHARED;
303 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
308 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits()] =
312 | VmFlags::VM_WRITE.bits()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs388 map[VmFlags::VM_WRITE.bits()] = EntryFlags::from_data(MMArch::PAGE_COPY);
389 map[VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
394 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits()] =
396 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
401 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_WRITE.bits()] =
403 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
409 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits()] =
413 | VmFlags::VM_WRITE.bits()
H A Dfault.rs54 if unlikely(!vm_flags.contains(VmFlags::VM_WRITE)) { in vma_access_error()