Linux Syscall Reference x86-64

Arguments are passed in rdi, rsi, rdx, r10, r8, r9; the syscall number goes in rax. Names link to man pages, arguments and definitions to the kernel source.

# Name Hex (rax) rdi rsi rdx r10 r8 r9 Definition