inotify_add_watch on metag
add a watch to an initialized inotify instance
sys_inotify_add_watch(int fd, const char *path, u32 mask)
| number | 27 (0x1b) |
|---|---|
| abi | common |
| kconfig | CONFIG_INOTIFY_USER |
| family | inotify see the whole family on metag |
| entry point | sys_inotify_add_watch |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | inotify_add_watch(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 27, the syscall number |
D1Ar1 | int fd |
D0Ar2 | const char *path |
D1Ar3 | u32 mask |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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 254
- x86 292
- arm64 27
- arm 317
- riscv64 27
- ia32 292
- x32 1073742078
- loongarch64 27
- ppc64 276
- ppc 276
- s390x 285
- mips64 5244
- mipsn32 6248
- mipso32 4285
- alpha 445
- arc 27
- blackfin 292, removed in 4.17
- cris 292, removed in 4.17
- csky 27
- frv 292, removed in 4.17
- hexagon 27
- ia64 1278, removed in 6.7
- m32r 292, removed in 4.17
- m68k 285
- microblaze 292
- mn10300 293, removed in 4.17
- nds32 27, removed in 5.18
- nios2 27
- openrisc 27
- parisc 270
- score 27, removed in 4.17
- sh 291
- sparc 152
- sparc64 152
- tilegx 27, removed in 4.17
- tilepro 27, removed in 4.17
- xtensa 277
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/inotify_add_watch?kernel=all