Searched refs:ProtFlags (Results 1 – 4 of 4) sorted by relevance
/DragonOS-0.1.8/kernel/src/mm/ |
D | ucontext.rs | 34 syscall::{MapFlags, ProtFlags}, 240 prot_flags: ProtFlags, in map_anonymous() argument 307 prot_flags: ProtFlags, in mmap() argument 407 prot_flags: ProtFlags, in mprotect() argument 455 .set_execute(prot_flags.contains(ProtFlags::PROT_EXEC)) in mprotect() 456 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)); in mprotect() 511 let prot_flags = ProtFlags::PROT_READ | ProtFlags::PROT_WRITE | ProtFlags::PROT_EXEC; in set_brk() 1016 pub fn can_have_flags(&self, prot_flags: ProtFlags) -> bool { in can_have_flags() 1017 return (self.flags.has_write() || !prot_flags.contains(ProtFlags::PROT_WRITE)) in can_have_flags() 1018 && (self.flags.has_execute() || !prot_flags.contains(ProtFlags::PROT_EXEC)); in can_have_flags() [all …]
|
D | syscall.rs | 21 pub struct ProtFlags: u64 { 127 let prot_flags = ProtFlags::from_bits_truncate(prot_flags as u64); in mmap() 214 let prot_flags = ProtFlags::from_bits(prot_flags as u64).ok_or(SystemError::EINVAL)?; in mprotect()
|
D | page.rs | 16 allocator::page_frame::FrameAllocator, syscall::ProtFlags, MemoryManagementArch, PageTableKind, 261 pub fn from_prot_flags(prot_flags: ProtFlags, user: bool) -> PageFlags<Arch> { in from_prot_flags() argument 264 .set_execute(prot_flags.contains(ProtFlags::PROT_EXEC)) in from_prot_flags() 265 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)); in from_prot_flags()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | elf.rs | 18 syscall::{MapFlags, ProtFlags}, 92 prot_flags: ProtFlags, in set_elf_brk() argument 128 fn make_prot(&self, p_flags: u32, _has_interpreter: bool, _is_interpreter: bool) -> ProtFlags { in make_prot() argument 129 let mut prot = ProtFlags::empty(); in make_prot() 131 prot |= ProtFlags::PROT_READ; in make_prot() 134 prot |= ProtFlags::PROT_WRITE; in make_prot() 137 prot |= ProtFlags::PROT_EXEC; in make_prot() 169 prot: &ProtFlags, in load_elf_segment() argument 203 let tmp_prot = if !prot.contains(ProtFlags::PROT_WRITE) { in load_elf_segment() 204 *prot | ProtFlags::PROT_WRITE in load_elf_segment() [all …]
|