fanotify_init on loongarch64

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 loongarch64
entry pointsys_fanotify_init
sinceLinux 5.19 or earlier (5.19 is the first release scanned for loongarch64)
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 syscall 0 to enter the kernel.

Same syscall on other architectures

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