aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/slab.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2024-10-04 15:41:08 +0000
committerMiguel Ojeda <[email protected]>2024-10-15 20:56:27 +0000
commit8a799831fc63c988eec90d334fdd68ff5f2c7eb5 (patch)
tree17d05292dd8d54f2b73a45c94bec464f0e118bf8 /rust/helpers/slab.c
parentrust: alloc: rename `KernelAllocator` to `Kmalloc` (diff)
downloadkernel-8a799831fc63c988eec90d334fdd68ff5f2c7eb5.tar.gz
kernel-8a799831fc63c988eec90d334fdd68ff5f2c7eb5.zip
rust: alloc: implement `ReallocFunc`
`ReallocFunc` is an abstraction for the kernel's realloc derivates, such as `krealloc`, `vrealloc` and `kvrealloc`. All of the named functions share the same function signature and implement the same semantics. The `ReallocFunc` abstractions provides a generalized wrapper around those, to trivialize the implementation of `Kmalloc`, `Vmalloc` and `KVmalloc` in subsequent patches. 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] [ Added temporary `allow(dead_code)` for `dangling_from_layout` to clean warning in `rusttest` target as discussed in the list (but it is needed earlier, i.e. in this patch already). Added colon. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/slab.c')
0 files changed, 0 insertions, 0 deletions