diff options
| author | Danilo Krummrich <[email protected]> | 2024-10-04 15:41:10 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-10-15 20:56:59 +0000 |
| commit | a34822d1c4c93085f635b922441a017bd7e959b0 (patch) | |
| tree | e1dcdc55e38adb0375cd827d11028f95954e79b4 /rust/helpers/vmalloc.c | |
| parent | rust: alloc: make `allocator` module public (diff) | |
| download | kernel-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/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
