summaryrefslogtreecommitdiff
path: root/crypto/vmac.c
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2024-08-03 02:34:25 +0200
committerDanilo Krummrich <dakr@kernel.org>2024-08-15 19:56:10 +0200
commit037631b849350e7f763c50dc9f8054ddf5937a3c (patch)
tree90ec7c01856541b1d926cacff383b772a1dbc7f9 /crypto/vmac.c
parent24fffe2f872f0fa04f7ce1d3e73d9544b5dcb999 (diff)
rust: alloc: implement `Cmalloc` in module allocator_test
So far the kernel's `Box` and `Vec` types can't be used by userspace test cases, since all users of those types (e.g. `CString`) use kernel allocators for instantiation. In order to allow userspace test cases to make use of such types as well, implement the `Cmalloc` allocator within the allocator_test module and type alias all kernel allocators to `Cmalloc`. The `Cmalloc` allocator uses libc's realloc() function as allocator backend. Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'crypto/vmac.c')
0 files changed, 0 insertions, 0 deletions