aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2024-10-04 15:41:10 +0000
committerMiguel Ojeda <[email protected]>2024-10-15 20:56:59 +0000
commita34822d1c4c93085f635b922441a017bd7e959b0 (patch)
treee1dcdc55e38adb0375cd827d11028f95954e79b4 /rust/helpers/helpers.c
parentrust: alloc: make `allocator` module public (diff)
downloadkernel-a34822d1c4c93085f635b922441a017bd7e959b0.tar.gz
kernel-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 <[email protected]> Reviewed-by: Gary Guo <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions