Home
last modified time | relevance | path

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

/DragonOS/kernel/src/mm/
H A Dmm.h126 #define VM_READ (1 << 0) macro
137 #define VM_ACCESS_FLAGS (VM_READ | VM_WRITE | VM_EXEC)
H A Dsyscall.rs171 vm_flags |= VmFlags::VM_READ; in from()
191 vm_flags |= VmFlags::VM_READ; in from()
193 vm_flags |= VmFlags::VM_READ | VmFlags::VM_WRITE; in from()
236 if value.contains(VmFlags::VM_READ) { in from()
H A Dmod.rs47 const VM_READ = 0x00000001; constant
685 VmFlags::VM_READ | VmFlags::VM_WRITE | VmFlags::VM_EXEC | VmFlags::VM_SHARED, in vm_get_page_prot()
H A Ducontext.rs1305 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.rs292 map[VmFlags::VM_READ.bits()] = MMArch::PAGE_READONLY;
294 map[VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] = MMArch::PAGE_COPY;
296 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_READ.bits()] = MMArch::PAGE_READONLY_EXEC;
298 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
301 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_READ.bits()] = MMArch::PAGE_READONLY;
303 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
306 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_EXEC.bits() | VmFlags::VM_READ.bits()] =
313 | VmFlags::VM_READ.bits()] = MMArch::PAGE_SHARED_EXEC;
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs387 map[VmFlags::VM_READ.bits()] = EntryFlags::from_data(MMArch::PAGE_READONLY);
389 map[VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
392 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_READ.bits()] =
396 map[VmFlags::VM_EXEC.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
399 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_READ.bits()] =
403 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_WRITE.bits() | VmFlags::VM_READ.bits()] =
407 map[VmFlags::VM_SHARED.bits() | VmFlags::VM_EXEC.bits() | VmFlags::VM_READ.bits()] =
414 | VmFlags::VM_READ.bits()] = EntryFlags::from_data(MMArch::PAGE_SHARED_EXEC);