Searched refs:MapFlags (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/mm/ |
H A D | syscall.rs | 32 pub struct MapFlags: u64 { 142 impl From<MapFlags> for VmFlags { 143 fn from(map_flags: MapFlags) -> Self { in from() 146 if map_flags.contains(MapFlags::MAP_GROWSDOWN) { in from() 150 if map_flags.contains(MapFlags::MAP_LOCKED) { in from() 154 if map_flags.contains(MapFlags::MAP_SYNC) { in from() 158 if map_flags.contains(MapFlags::MAP_SHARED) { in from() 208 impl From<VmFlags> for MapFlags { implementation 210 let mut map_flags = MapFlags::MAP_NONE; in from() 213 map_flags |= MapFlags::MAP_GROWSDOWN; in from() [all …]
|
H A D | ucontext.rs | 39 syscall::{MadvFlags, MapFlags, MremapFlags, ProtFlags}, 216 let map_flags = MapFlags::MAP_PRIVATE | MapFlags::MAP_ANONYMOUS | MapFlags::MAP_GROWSDOWN; in extend_stack() 251 map_flags: MapFlags, in map_anonymous() argument 327 map_flags: MapFlags, in file_mapping() argument 442 map_flags: MapFlags, in mmap() argument 535 let mut map_flags: MapFlags = vm_flags.into(); in mremap() 541 map_flags |= MapFlags::MAP_FIXED; in mremap() 766 let map_flags = MapFlags::MAP_PRIVATE | MapFlags::MAP_ANONYMOUS | MapFlags::MAP_FIXED; in set_brk() 957 flags: MapFlags, in find_free_at() argument 973 if flags.contains(MapFlags::MAP_FIXED_NOREPLACE) { in find_free_at() [all …]
|
/DragonOS/kernel/src/libs/ |
H A D | elf.rs | 25 syscall::{MapFlags, ProtFlags}, 132 MapFlags::MAP_ANONYMOUS | MapFlags::MAP_FIXED_NOREPLACE, in set_elf_brk() 207 map_flags: &MapFlags, in load_elf_segment() argument 657 let mut elf_map_flags = MapFlags::MAP_PRIVATE; in load() 663 elf_map_flags.insert(MapFlags::MAP_FIXED_NOREPLACE); in load() 670 elf_map_flags.insert(MapFlags::MAP_FIXED_NOREPLACE); in load()
|