diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-08-05 12:39:15 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-08-13 16:05:09 +0200 |
commit | 3634762ead9f828eac6796e0d68e4dfed0f6b4cf (patch) | |
tree | 953347f4a44bd9507887826200f8f59ea3cf408e /LICENSES | |
parent | 58a32cb00d641066657491add0638239f806777f (diff) |
rust: alloc: implement `contains` for `Flags`
Provide a simple helper function to check whether given flags do
contain one or multiple other flags.
This is used by a subsequent patch implementing the Cmalloc `Allocator`
to check for __GFP_ZERO.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions