syscall.sh / openrisc / pivot_root

pivot_root

change the root mount

sys_pivot_root(const char *new_root, const char *put_old)
number41 (0x29)
abicommon
entry pointsys_pivot_root
sinceLinux 3.7
man pagepivot_root(2)
sourceelixir.bootlin.com

Registers

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