Lines Matching defs:Flags
32 /// Flags to be used when allocating memory.
38 pub struct Flags(u32);
40 impl Flags {
47 pub fn contains(self, flags: Flags) -> bool {
52 impl core::ops::BitOr for Flags {
59 impl core::ops::BitAnd for Flags {
66 impl core::ops::Not for Flags {
77 use super::Flags;
82 pub const __GFP_ZERO: Flags = Flags(bindings::__GFP_ZERO);
90 pub const __GFP_HIGHMEM: Flags = Flags(bindings::__GFP_HIGHMEM);
97 pub const GFP_ATOMIC: Flags = Flags(bindings::GFP_ATOMIC);
101 pub const GFP_KERNEL: Flags = Flags(bindings::GFP_KERNEL);
104 pub const GFP_KERNEL_ACCOUNT: Flags = Flags(bindings::GFP_KERNEL_ACCOUNT);
109 pub const GFP_NOWAIT: Flags = Flags(bindings::GFP_NOWAIT);
114 pub const __GFP_NOWARN: Flags = Flags(bindings::__GFP_NOWARN);
186 /// Additionally, `Flags` are honored as documented in
188 fn alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> {
238 flags: Flags,
260 Flags(0),