mq_open on riscv64

open a message queue

sys_mq_open(const char *name, int oflag, umode_t mode, struct mq_attr *attr)
number180 (0xb4)
abicommon
kconfigCONFIG_POSIX_MQUEUE
familymqueue see the whole family on riscv64
entry pointsys_mq_open
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagemq_open(2)
sourceelixir.bootlin.com

Registers

registervalue
a7180, the syscall number
a0const char *name
a1int oflag
a2umode_t mode
a3struct mq_attr *attr
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_open