syscall.sh / arm / inotify_add_watch
inotify_add_watch
add a watch to an initialized inotify instance
sys_inotify_add_watch(int fd, const char *path, u32 mask)
| number | 317 (0x13d) |
|---|---|
| abi | common |
| entry point | sys_inotify_add_watch |
| since | Linux 4.10 |
| man page | inotify_add_watch(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 317, the syscall number |
r0 | int fd |
r1 | const char *path |
r2 | u32 mask |
r0 | the return value |
Then run svc #0 to enter the kernel.
Same syscall on other architectures
- x64 254
- x86 292
- arm64 27
- riscv64 27
- x32 1073742078
- loongarch64 27
- ppc64 276
- ppc 276
- s390x 285
- mips64 5244
- mipsn32 6248
- mipso32 4285
- alpha 445
- arc 27
- csky 27
- hexagon 27
- m68k 285
- microblaze 292
- nios2 27
- openrisc 27
- parisc 270
- sh 291
- sparc 152
- sparc64 152
- xtensa 277
Get this as JSON: https://api.syscall.sh/v2/syscalls/arm/inotify_add_watch