rust: alloc: introduce allocation flags
authorWedson Almeida Filho <walmeida@microsoft.com>
Thu, 28 Mar 2024 01:35:58 +0000 (22:35 -0300)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 16 Apr 2024 20:05:06 +0000 (22:05 +0200)
commitb6a006e21b822d1dd262fa249ff71a2991e7b319
tree623c13027f1cd54602b93c19628d39be8c4e3ef0
parent9d0441bab775d2daa51370909b8648e27d0eb47d
rust: alloc: introduce allocation flags

We'll use them when allocating `Box`, `Arc`, and `UniqueArc` instances,
as well as when allocating memory for `Vec` elements. These changes will
come in subsequent patches.

Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com>
Link: https://lore.kernel.org/r/20240328013603.206764-6-wedsonaf@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/bindings/bindings_helper.h
rust/kernel/alloc.rs
rust/kernel/alloc/allocator.rs
rust/kernel/prelude.rs