fchownat on riscv64

change ownership of a file

sys_fchownat(int dfd, const char *filename, uid_t user, gid_t group, int flag)
number54 (0x36)
abicommon
entry pointsys_fchownat
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagefchownat(2)
sourceelixir.bootlin.com

Registers

registervalue
a754, the syscall number
a0int dfd
a1const char *filename
a2uid_t user
a3gid_t group
a4int flag
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/fchownat