fanotify_mark on ia32

add, remove, or modify an fanotify mark on a filesystem object

compat_sys_fanotify_mark(int fanotify_fd, unsigned int flags, u64 mask, int fd, const char *pathname)
number339 (0x153)
abii386
kconfigCONFIG_FANOTIFY
familyfanotify
entry pointcompat_sys_fanotify_mark
sinceLinux 3.3 or earlier (3.3 is the first release scanned for ia32)
man pagefanotify_mark(2)
sourceelixir.bootlin.com

Registers

registervalue
eax339, the syscall number
ebxint fanotify_fd
ecxunsigned int flags
edxu64 mask
esiint fd
ediconst char *pathname
eaxthe 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

Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/fanotify_mark