mq_timedreceive on riscv64

receive a message from a message queue

sys_mq_timedreceive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned int *msg_prio, const struct __kernel_timespec *abs_timeout)
number183 (0xb7)
abi64
kconfigCONFIG_POSIX_MQUEUE
familymqueue see the whole family on riscv64
entry pointsys_mq_timedreceive
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagemq_timedreceive(2)
sourceelixir.bootlin.com

Registers

registervalue
a7183, the syscall number
a0mqd_t mqdes
a1char *msg_ptr
a2size_t msg_len
a3unsigned int *msg_prio
a4const struct __kernel_timespec *abs_timeout
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/mq_timedreceive