diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-08-05 12:39:15 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-10-08 16:27:51 +0200 |
commit | 757bc222b31fd98531ac3e0c9a37291dae2bf7b8 (patch) | |
tree | 4bdabe16efeba6125cb0a00312c97742f654c676 /rust/kernel/alloc/allocator_test.rs | |
parent | 0f93a01abc864b13fd77901123fdae3f725ac71f (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>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/allocator_test.rs')
0 files changed, 0 insertions, 0 deletions