syscall.sh / openrisc / fchown

fchown

change ownership of a file

sys_fchown(unsigned int fd, uid_t user, gid_t group)
number55 (0x37)
abicommon
entry pointsys_fchown
sinceLinux 3.7
man pagefchown(2)
sourceelixir.bootlin.com

Registers

registervalue
r1155, the syscall number
r3unsigned int fd
r4uid_t user
r5gid_t group
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/openrisc/fchown