syscall.sh / x86 / socketpair

socketpair

create a pair of connected sockets

sys_socketpair(int family, int type, int protocol, int *usockvec)
number360 (0x168)
abii386
entry pointsys_socketpair
sinceLinux 4.3
man pagesocketpair(2)
sourceelixir.bootlin.com

Registers

registervalue
eax360, the syscall number
ebxint family
ecxint type
edxint protocol
esiint *usockvec
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/socketpair