diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-10-04 18:41:10 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-10-15 23:56:59 +0300 |
commit | a34822d1c4c93085f635b922441a017bd7e959b0 (patch) | |
tree | e1dcdc55e38adb0375cd827d11028f95954e79b4 /rust/kernel/alloc/allocator_test.rs | |
parent | a87a36f0bf517dae22f3e3790b05c979070f776a (diff) | |
download | linux-a34822d1c4c93085f635b922441a017bd7e959b0.tar.xz |
rust: alloc: implement `Allocator` for `Kmalloc`
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>
Diffstat (limited to 'rust/kernel/alloc/allocator_test.rs')
0 files changed, 0 insertions, 0 deletions