syscall.sh / arm64 / socketpair

socketpair

create a pair of connected sockets

sys_socketpair(int family, int type, int protocol, int *usockvec)
number199 (0xc7)
abicommon
entry pointsys_socketpair
sinceLinux 3.7
man pagesocketpair(2)
sourceelixir.bootlin.com

Registers

registervalue
x8199, the syscall number
x0int family
x1int type
x2int protocol
x3int *usockvec
x0the 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/arm64/socketpair