linux/rust/helpers
Danilo Krummrich 8362c2608b rust: alloc: implement KVmalloc allocator
Implement `Allocator` for `KVmalloc`, an `Allocator` that tries to
allocate memory with `kmalloc` first and, on failure, falls back to
`vmalloc`.

All memory allocations made with `KVmalloc` end up in
`kvrealloc_noprof()`; all frees in `kvfree()`.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
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-10-dakr@kernel.org
[ Reworded typo. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2024-10-15 22:56:59 +02:00
..
blk.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
bug.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
build_assert.c
build_bug.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
err.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
helpers.c rust: alloc: implement Vmalloc allocator 2024-10-15 22:56:59 +02:00
kunit.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
mutex.c rust: mutex: fix __mutex_init() usage in case of PREEMPT_RT 2024-09-26 21:22:15 +02:00
page.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
rbtree.c rust: rbtree: add red-black tree implementation backed by the C version 2024-08-31 17:35:08 +02:00
refcount.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
signal.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
slab.c rust: alloc: implement KVmalloc allocator 2024-10-15 22:56:59 +02:00
spinlock.c rust: lock: add trylock method support for lock backend 2024-10-10 00:33:42 +02:00
task.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
uaccess.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
vmalloc.c rust: alloc: implement Vmalloc allocator 2024-10-15 22:56:59 +02:00
wait.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00
workqueue.c rust: kbuild: auto generate helper exports 2024-08-19 11:09:02 +02:00