syscall.sh / x32 / accept

accept

accept a connection on a socket

sys_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
number1073741867 (0x4000002b)
abicommon
entry pointsys_accept
sinceLinux 3.4
man pageaccept(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741867, the syscall number
rdiint fd
rsistruct sockaddr *upeer_sockaddr
rdxint *upeer_addrlen
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/accept