syscall.sh / xtensa / chown

chown

change ownership of a file

sys_chown(const char *filename, uid_t user, gid_t group)
number45 (0x2d)
abicommon
entry pointsys_chown
sinceLinux 5.0
man pagechown(2)
sourceelixir.bootlin.com

Registers

registervalue
a245, the syscall number
a6const char *filename
a3uid_t user
a4gid_t group
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/chown