syscall.sh / riscv64 / recvmsg

recvmsg

receive a message from a socket

sys_recvmsg(int fd, struct user_msghdr *msg, unsigned int flags)
number212 (0xd4)
abicommon
entry pointsys_recvmsg
sinceLinux 4.15
man pagerecvmsg(2)
sourceelixir.bootlin.com

Registers

registervalue
a7212, the syscall number
a0int fd
a1struct user_msghdr *msg
a2unsigned int flags
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/recvmsg