syscall.sh / s390x / pivot_root

pivot_root

change the root mount

sys_pivot_root(const char *new_root, const char *put_old)
number217 (0xd9)
abicommon
entry pointsys_pivot_root
sinceLinux 4.16
man pagepivot_root(2)
sourceelixir.bootlin.com

Registers

registervalue
r1217, the syscall number
r2const char *new_root
r3const char *put_old
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/pivot_root