Linux系统调用表或汇编语言的cheetsheet

时间:2022-11-07 22:33:46

Does anyone know where to find a summary table or cheatsheet for the Linux system call in Assembly language? I am invoking Linux system calls through int 0x80 instruction and I need to refer to what register contains what value from time to time.

有谁知道在汇编语言中为Linux系统调用找到汇总表或备忘单的位置?我通过int 0x80指令调用Linux系统调用,我需要不时地引用哪个寄存器包含什么值。

Thanks.

谢谢。

3 个解决方案

#1


19  

Here's a really good online reference with links to documentation and kernel source code.

这是一个非常好的在线参考,包含文档和内核源代码的链接。

#2


0  

And here's one more that's more easily navigable http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html

还有一个更容易导航http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html

And a scripting way to find out for your current machine

并以脚本方式找到您当前的机器

ls /usr/share/man/man2 | sed -e s/.2.gz//g | xargs man -s 2 -k  | sort | grep -v 'unimplemented system calls'

Credit - http://www.cs.fsu.edu/~langley/current-system-calls.html

信用 - http://www.cs.fsu.edu/~langley/current-system-calls.html

#3


0  

The system calls can also be found in /usr/include/asm/unistd.h, which will point you to unistd32.h or unistd64.h

系统调用也可以在/usr/include/asm/unistd.h中找到,它将指向unistd32.h或unistd64.h

#1


19  

Here's a really good online reference with links to documentation and kernel source code.

这是一个非常好的在线参考,包含文档和内核源代码的链接。

#2


0  

And here's one more that's more easily navigable http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html

还有一个更容易导航http://docs.cs.up.ac.za/programming/asm/derick_tut/syscalls.html

And a scripting way to find out for your current machine

并以脚本方式找到您当前的机器

ls /usr/share/man/man2 | sed -e s/.2.gz//g | xargs man -s 2 -k  | sort | grep -v 'unimplemented system calls'

Credit - http://www.cs.fsu.edu/~langley/current-system-calls.html

信用 - http://www.cs.fsu.edu/~langley/current-system-calls.html

#3


0  

The system calls can also be found in /usr/include/asm/unistd.h, which will point you to unistd32.h or unistd64.h

系统调用也可以在/usr/include/asm/unistd.h中找到,它将指向unistd32.h或unistd64.h