syscall.sh / riscv64 / fchroot

fchroot

sys_fchroot(int fd, unsigned int flags)
number472 (0x1d8)
abicommon
entry pointsys_fchroot
sinceLinux 7.3
sourceelixir.bootlin.com

Registers

registervalue
a7472, the syscall number
a0int fd
a1unsigned int flags
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/fchroot