diff options
author | Danilo Krummrich <[email protected]> | 2024-10-04 17:41:28 +0200 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2024-10-15 23:10:32 +0200 |
commit | 909037ce0369bc3f4fd31743fd2d8d7096f06002 (patch) | |
tree | e5c03b85efd8a1beb30b336fc0bc1a684a9cdc54 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 4a28ab469ff01855eb819dfd94754d1792f03f2a (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 <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions