syscall.sh / riscv64 / sendmsg

sendmsg

send a message on a socket

sys_sendmsg(int fd, struct user_msghdr *msg, unsigned int flags)
number211 (0xd3)
abicommon
entry pointsys_sendmsg
sinceLinux 4.15
man pagesendmsg(2)
sourceelixir.bootlin.com

Registers

registervalue
a7211, 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/sendmsg