syscall.sh / sh / 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 | 291 (0x123) |
|---|---|
| abi | common |
| entry point | sys_inotify_add_watch |
| since | Linux 5.0 |
| man page | inotify_add_watch(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 291, the syscall number |
r4 | int fd |
r5 | const char *path |
r6 | u32 mask |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 254
- x86 292
- arm64 27
- arm 317
- 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
- sparc 152
- sparc64 152
- xtensa 277
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/inotify_add_watch