syscall.sh / s390x / chroot

chroot

change root directory

sys_chroot(const char *filename)
number61 (0x3d)
abicommon
entry pointsys_chroot
sinceLinux 4.16
man pagechroot(2)
sourceelixir.bootlin.com

Registers

registervalue
r161, the syscall number
r2const char *filename
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/chroot