syscall.sh / riscv64 / 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 | 27 (0x1b) |
|---|---|
| abi | common |
| entry point | sys_inotify_add_watch |
| since | Linux 4.15 |
| man page | inotify_add_watch(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 27, the syscall number |
a0 | int fd |
a1 | const char *path |
a2 | u32 mask |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 254
- x86 292
- arm64 27
- arm 317
- 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/riscv64/inotify_add_watch