2 ms·
> You could boot Linux straight into your program if you want, without any user space at all. That was possible from around day one of linux kernel existence.
by egorfine 2y ago
> You could boot Linux straight into your program if you want, without any user space at all.
That was possible from around day one of linux kernel existence.
- matheusmoreira 2y agoYes. However it's not at all obvious that there is a clean separation between Linux and user space. You look up the manual entry on some Linux system call and it gives you the glibc documentation. You look up the init system in the manual, expecting details on what the kernel requires of PID 1, and it just gives you systemd documentation. This stuff is completely mixed up. You look Linux up on Wikipedia and the article eventually starts telling you about standard C libraries as if they were part of Linux. In some articles there's even a diagram showing glibc wrapping the kernel, as if it was Linux's equivalent to the Win32 API. https://upload.wikimedia.org/wikipedia/commons/4/45/Linux_kernel_System_Call_Interface_and_glibc.svg https://upload.wikimedia.org/wikipedia/commons/4/45/Linux_ke... In reality, you can trash that entire thing and remake the entire user space in Rust or Zig or Lisp if you want. No libraries are necessary.