diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-07-23 18:58:41 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-10-08 16:13:32 +0200 |
commit | b9f0e3cec3bb9500706f8367ad0efd86707594ec (patch) | |
tree | d83481d00754b8048faed1443c6e98b9e706a901 /rust/.gitignore | |
parent | 68d7d5e776589f11c1add2f7dec7e13a85bcb5ea (diff) |
rust: alloc: implement `KVmalloc` allocator
Implement `Allocator` for `KVmalloc`, an `Allocator` that tries to
allocate memory wth `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>
Diffstat (limited to 'rust/.gitignore')
0 files changed, 0 insertions, 0 deletions