diff options
author | Danilo Krummrich <dakr@kernel.org> | 2025-03-07 23:49:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-03-13 13:01:44 +0100 |
commit | dcaf3206d942f2ebf497ec96f85f15beb21d55c8 (patch) | |
tree | 66bfb4da7e9cc01c7cc4fe44a8fa802331e413d1 /rust/kernel/alloc.rs | |
parent | 594134eb9cb57a2fff4911a508dab1fa2e8a6d53 (diff) |
rust: alloc: implement `Allocator` for `Kmalloc`
commit a34822d1c4c93085f635b922441a017bd7e959b0 upstream.
Implement `Allocator` for `Kmalloc`, the kernel's default allocator,
typically used for objects smaller than page size.
All memory allocations made with `Kmalloc` end up in `krealloc()`.
It serves as allocator for the subsequently introduced types `KBox` and
`KVec`.
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241004154149.93856-7-dakr@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/alloc.rs')
0 files changed, 0 insertions, 0 deletions