diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-10-04 17:41:10 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-10-15 22:56:59 +0200 |
commit | a34822d1c4c93085f635b922441a017bd7e959b0 (patch) | |
tree | e1dcdc55e38adb0375cd827d11028f95954e79b4 /rust/helpers/vmalloc.c | |
parent | a87a36f0bf517dae22f3e3790b05c979070f776a (diff) | |
download | linux-stable-a34822d1c4c93085f635b922441a017bd7e959b0.tar.gz linux-stable-a34822d1c4c93085f635b922441a017bd7e959b0.tar.bz2 linux-stable-a34822d1c4c93085f635b922441a017bd7e959b0.zip |
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/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions