Lines Matching refs:VmFlags
17 verify_area, VirtAddr, VmFlags,
76 impl From<MapFlags> for VmFlags { implementation
78 let mut vm_flags = VmFlags::VM_NONE; in from()
81 vm_flags |= VmFlags::VM_GROWSDOWN; in from()
85 vm_flags |= VmFlags::VM_LOCKED; in from()
89 vm_flags |= VmFlags::VM_SYNC; in from()
96 impl From<ProtFlags> for VmFlags { implementation
98 let mut vm_flags = VmFlags::VM_NONE; in from()
101 vm_flags |= VmFlags::VM_READ; in from()
105 vm_flags |= VmFlags::VM_WRITE; in from()
109 vm_flags |= VmFlags::VM_EXEC; in from()
116 impl Into<MapFlags> for VmFlags { implementation
120 if self.contains(VmFlags::VM_GROWSDOWN) { in into()
124 if self.contains(VmFlags::VM_LOCKED) { in into()
128 if self.contains(VmFlags::VM_SYNC) { in into()
132 if self.contains(VmFlags::VM_MAYSHARE) { in into()
140 impl Into<ProtFlags> for VmFlags { implementation
144 if self.contains(VmFlags::VM_READ) { in into()
148 if self.contains(VmFlags::VM_WRITE) { in into()
152 if self.contains(VmFlags::VM_EXEC) { in into()
308 if vm_flags.contains(VmFlags::VM_HUGETLB) { in mremap()