connect on riscv64

initiate a connection on a socket

sys_connect(int fd, struct sockaddr *uservaddr, int addrlen)
number203 (0xcb)
abicommon
entry pointsys_connect
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pageconnect(2)
sourceelixir.bootlin.com

Registers

registervalue
a7203, the syscall number
a0int fd
a1struct sockaddr *uservaddr
a2int addrlen
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/connect