r/kernel • • 3d ago

Linux kernel modules in Go

https://jespino.github.io/gokm/
25 Upvotes

11 comments sorted by

View all comments

Show parent comment

-9

u/Charming_Skin_8549 3d ago

There shouldn't be issues if Go memory isn't passed to Linux kernel.

1

u/paulstelian97 2d ago

You do not want unnecessary memory allocations in the kernel — any memory allocated and unused by the kernel is not easy to free up when there’s a need for it. Also memory leaks. Also memory fragmentation. The kernel is intended to be stingy for stuff running in kernel space, so the userspace has access to as much as possible.