syscall.sh / x86 / socket

socket

create an endpoint for communication

sys_socket(int family, int type, int protocol)
number359 (0x167)
abii386
entry pointsys_socket
sinceLinux 4.3
man pagesocket(2)
sourceelixir.bootlin.com

Registers

registervalue
eax359, the syscall number
ebxint family
ecxint type
edxint protocol
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/socket