Searched refs:prot_flags (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/mm/ |
H A D | syscall.rs | 167 fn from(prot_flags: ProtFlags) -> Self { in from() 170 if prot_flags.contains(ProtFlags::PROT_READ) { in from() 174 if prot_flags.contains(ProtFlags::PROT_WRITE) { in from() 178 if prot_flags.contains(ProtFlags::PROT_EXEC) { in from() 234 let mut prot_flags = ProtFlags::PROT_NONE; in from() localVariable 237 prot_flags |= ProtFlags::PROT_READ; in from() 241 prot_flags |= ProtFlags::PROT_WRITE; in from() 245 prot_flags |= ProtFlags::PROT_EXEC; in from() 248 prot_flags in from() 302 prot_flags: usize, in mmap() [all …]
|
H A D | ucontext.rs | 215 let prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC; in extend_stack() localVariable 222 self.map_anonymous(len, bytes, prot_flags, map_flags, false, false)?; in extend_stack() 250 prot_flags: ProtFlags, in map_anonymous() 284 prot_flags, in map_anonymous() 326 prot_flags: ProtFlags, in file_mapping() 378 prot_flags, in file_mapping() 441 prot_flags: ProtFlags, in mmap() 464 let vm_flags = VmFlags::from(prot_flags) in mmap() 487 EntryFlags::from_prot_flags(prot_flags, true), in mmap() 537 let prot_flags: ProtFlags = vm_flags.into(); in mremap() localVariable [all …]
|
H A D | page.rs | 809 pub fn from_prot_flags(prot_flags: ProtFlags, user: bool) -> Self { in from_prot_flags() 811 let vm_flags = super::VmFlags::from(prot_flags); in from_prot_flags() 816 .set_execute(prot_flags.contains(ProtFlags::PROT_EXEC)) in from_prot_flags() 817 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)) in from_prot_flags()
|
/DragonOS/kernel/src/libs/ |
H A D | elf.rs | 122 prot_flags: ProtFlags, in set_elf_brk() 131 prot_flags, in set_elf_brk()
|