4 ms·
Yes, but that only works for Linux. That's not the case for many other OSes where syscalls are not stable.
by mlindner 4y ago
Yes, but that only works for Linux. That's not the case for many other OSes where syscalls are not stable.
- masklinn 4y agoAnd even for Linux, - you still have to take C ideas in account because you don’t know how much stack a syscall wants - vdso are C-ABI objects
- matheusmoreira 4y ago> you don’t know how much stack a syscall wants There are no such considerations when issuing Linux system calls. You place parameters in specific registers, trap into kernel mode and then read back the result from a specific register. There is one MIPS architecture where you have to pass some arguments on the stack but that's about it. > vdso are C-ABI objects Yes, unfortunately. It is not necessary to use the vDSO though. It is a performance optimization. The normal system calls will work just fine.