mq_getsetattr on score
get/set message queue attributes
sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr *mqstat, struct mq_attr *omqstat)
| number | 185 (0xb9) |
|---|---|
| abi | common |
| kconfig | CONFIG_POSIX_MQUEUE |
| family | mqueue see the whole family on score |
| entry point | sys_mq_getsetattr |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | mq_getsetattr(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 185, the syscall number |
r4 | mqd_t mqdes |
r5 | const struct mq_attr *mqstat |
r6 | struct mq_attr *omqstat |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 245
- x86 282
- arm64 185
- arm 279
- riscv64 185
- ia32 282
- x32 1073742069
- loongarch64 185
- ppc64 267
- ppc 267
- s390x 276
- mips64 5235
- mipsn32 6239
- mipso32 4276
- alpha 437
- arc 185
- blackfin 283, removed in 4.17
- cris 282, removed in 4.17
- csky 185
- frv 282, removed in 4.17
- hexagon 185
- ia64 1267, removed in 6.7
- m32r 282, removed in 4.17
- m68k 276
- metag 185, removed in 4.17
- microblaze 282
- mn10300 282, removed in 4.17
- nds32 185, removed in 5.18
- nios2 185
- openrisc 185
- parisc 234
- sh 282
- sparc 278
- sparc64 278
- tilegx 185, removed in 4.17
- tilepro 185, removed in 4.17
- xtensa 237
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/mq_getsetattr?kernel=all