fanotify_init on riscv64

create and initialize fanotify group

sys_fanotify_init(unsigned int flags, unsigned int event_f_flags)
number262 (0x106)
abicommon
kconfigCONFIG_FANOTIFY
familyfanotify see the whole family on riscv64
entry pointsys_fanotify_init
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagefanotify_init(2)
sourceelixir.bootlin.com

Registers

registervalue
a7262, the syscall number
a0unsigned int flags
a1unsigned int event_f_flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/fanotify_init