mq_open on riscv64
open a message queue
sys_mq_open(const char *name, int oflag, umode_t mode, struct mq_attr *attr)
| number | 180 (0xb4) |
|---|---|
| abi | common |
| kconfig | CONFIG_POSIX_MQUEUE |
| family | mqueue see the whole family on riscv64 |
| entry point | sys_mq_open |
| since | Linux 4.15 or earlier (4.15 is the first release scanned for riscv64) |
| man page | mq_open(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 180, the syscall number |
a0 | const char *name |
a1 | int oflag |
a2 | umode_t mode |
a3 | struct mq_attr *attr |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 240
- x86 277
- arm64 180
- arm 274
- ia32 277
- x32 1073742064
- loongarch64 180
- ppc64 262
- ppc 262
- s390x 271
- mips64 5230
- mipsn32 6234
- mipso32 4271
- alpha 432
- arc 180
- csky 180
- hexagon 180
- m68k 271
- microblaze 277
- nios2 180
- openrisc 180
- parisc 229
- sh 277
- sparc 273
- sparc64 273
- xtensa 232
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/mq_open