inotify_add_watch on ia32
add a watch to an initialized inotify instance
sys_inotify_add_watch(int fd, const char *path, u32 mask)
| number | 292 (0x124) |
|---|---|
| abi | i386 |
| kconfig | CONFIG_INOTIFY_USER |
| family | inotify |
| entry point | sys_inotify_add_watch |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | inotify_add_watch(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 292, the syscall number |
ebx | int fd |
ecx | const char *path |
edx | u32 mask |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
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
- sh 291
- sparc 152
- sparc64 152
- xtensa 277
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/inotify_add_watch