diff options
| author | Danilo Krummrich <[email protected]> | 2024-10-04 15:41:05 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-10-14 15:55:40 +0000 |
| commit | b7a084ba4fbb8f416ce8d19c93a3a2bee63c9c89 (patch) | |
| tree | 9cb46d3a41670a42847f375a7159262bf1ac95a6 /rust/helpers/helpers.c | |
| parent | rust: kernel: move `FromBytes` and `AsBytes` traits to a new `transmute` module (diff) | |
| download | kernel-b7a084ba4fbb8f416ce8d19c93a3a2bee63c9c89.tar.gz kernel-b7a084ba4fbb8f416ce8d19c93a3a2bee63c9c89.zip | |
rust: alloc: add `Allocator` trait
Add a kernel specific `Allocator` trait, that in contrast to the one in
Rust's core library doesn't require unstable features and supports GFP
flags.
Subsequent patches add the following trait implementors: `Kmalloc`,
`Vmalloc` and `KVmalloc`.
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]
[ Fixed typo. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
