|
|
|
|
|
by matheusmoreira
1 day ago
|
|
Yeah. On Linux it's just an optimization. What user space really wanted was a way to memory map some kernel data into the process address space in order to avoid switching to kernel mode while accessing it. Instead Linux memory mapped an entire ELF whose only purpose is to wrap the data. Newer system calls like io_uring are doing it right. |
|
Look at the Linux architectures that have a vDSO in non-ELF format. It's seriously ugly.
(I don't think the comparison with io_uring is valid either, very different kind of API.)