syscall.sh / riscv64 / recvfrom

recvfrom

receive a message from a socket

sys_recvfrom(int fd, void *ubuf, size_t size, unsigned int flags, struct sockaddr *addr, int *addr_len)
number207 (0xcf)
abicommon
entry pointsys_recvfrom
sinceLinux 4.15
man pagerecvfrom(2)
sourceelixir.bootlin.com

Registers

registervalue
a7207, the syscall number
a0int fd
a1void *ubuf
a2size_t size
a3unsigned int flags
a4struct sockaddr *addr
a5int *addr_len
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/recvfrom