syscall.sh / arc / socket

socket

create an endpoint for communication

sys_socket(int family, int type, int protocol)
number198 (0xc6)
abicommon
entry pointsys_socket
sinceLinux 3.9
man pagesocket(2)
sourceelixir.bootlin.com

Registers

registervalue
r8198, the syscall number
r0int family
r1int type
r2int protocol
r0the return value

Then run trap0 to enter the kernel.

Same syscall on other architectures

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