summaryrefslogtreecommitdiff
path: root/kernel/extable.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-13 16:05:09 +0200
commitd1c35b4cf108f375eaea43a966745e67708c3c02 (patch)
treef7fa467d52a7fcf6496e0e498bb1b77a27042f4f /kernel/extable.c
parent3634762ead9f828eac6796e0d68e4dfed0f6b4cf (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 'kernel/extable.c')
0 files changed, 0 insertions, 0 deletions