Lines Matching refs:MapFlags
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()
217 map_flags |= MapFlags::MAP_LOCKED; in from()
221 map_flags |= MapFlags::MAP_SYNC; in from()
225 map_flags |= MapFlags::MAP_SHARED; in from()
307 let map_flags = MapFlags::from_bits_truncate(map_flags as u64); in mmap()
311 && map_flags.contains(MapFlags::MAP_FIXED) in mmap()
321 if map_flags.contains(MapFlags::MAP_HUGETLB) { in mmap()
326 let start_page = if map_flags.contains(MapFlags::MAP_ANONYMOUS) { in mmap()