syscall.sh / s390x / socket

socket

create an endpoint for communication

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

Registers

registervalue
r1359, the syscall number
r2int family
r3int type
r4int protocol
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/socket