I’d like to prototype parts of a non-trivial kernel module code in userspace.
A small amount of code will need to run as both part of a kernel module and in userspace tools to support the module.
Is there a library which implements the kernel’s linked lists, red-black tree, id allocator, etc. as a userspace library?
Just found this, though it lacks the id allocator: https://github.com/oun111/kernel_porting