inotify_add_watch on score
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 score |
| entry point | sys_inotify_add_watch |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | inotify_add_watch(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 27, the syscall number |
r4 | int fd |
r5 | const char *path |
r6 | u32 mask |
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 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
- metag 27, removed in 4.17
- microblaze 292
- mn10300 293, removed in 4.17
- nds32 27, removed in 5.18
- nios2 27
- openrisc 27
- parisc 270
- 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/score/inotify_add_watch?kernel=all