syscall.sh / xtensa / lchown

lchown

change ownership of a file

sys_lchown(const char *filename, uid_t user, gid_t group)
number48 (0x30)
abicommon
entry pointsys_lchown
sinceLinux 5.0
man pagelchown(2)
sourceelixir.bootlin.com

Registers

registervalue
a248, 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/lchown