inotify_add_watch on riscv64

add a watch to an initialized inotify instance

sys_inotify_add_watch(int fd, const char *path, u32 mask)
number27 (0x1b)
abicommon
kconfigCONFIG_INOTIFY_USER
familyinotify see the whole family on riscv64
entry pointsys_inotify_add_watch
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pageinotify_add_watch(2)
sourceelixir.bootlin.com

Registers

registervalue
a727, the syscall number
a0int fd
a1const char *path
a2u32 mask
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/inotify_add_watch