3 ms·
Linux's syscalls: http://man7.org/linux/man-pages/dir_section_2.html http://man7.org/linux/man-pages/dir_section_2.html (I have learned a lot by just going to
by kentonv 11y ago
Linux's syscalls: http://man7.org/linux/man-pages/dir_section_2.html http://man7.org/linux/man-pages/dir_section_2.html
(I have learned a lot by just going to that page and randomly clicking on things.)
- asveikau 11y agoThis is documentation. It's not an ABI reference the same way the article is. The article is about the nuts and bolts of how user mode makes calls into the kernel, which manpages don't bother with. If you want to learn the syscall ABI on Linux you need to look at <asm/unistd.h>. Seems like this file has gone through some refactorings since the last time I looked, but here's an older version: http://lxr.free-electrons.com/source/include/asm-generic/unistd.h?v=3.2 http://lxr.free-electrons.com/source/include/asm-generic/uni... [edit: ia32 here http://lxr.free-electrons.com/source/arch/x86/include/asm/unistd_32.h?v=3.2 http://lxr.free-electrons.com/source/arch/x86/include/asm/un...] -- the constants in the __NR_* macros define the table that this article is attempting to build. [Basically, the interrupt handler for a syscall needs to know where to jump based on that index.]