syscall.sh / xtensa / fchownat

fchownat

change ownership of a file

sys_fchownat(int dfd, const char *filename, uid_t user, gid_t group, int flag)
number297 (0x129)
abicommon
entry pointsys_fchownat
sinceLinux 5.0
man pagefchownat(2)
sourceelixir.bootlin.com

Registers

registervalue
a2297, the syscall number
a6int dfd
a3const char *filename
a4uid_t user
a5gid_t group
a8int flag
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/fchownat