syscall.sh / x86 / pivot_root

pivot_root

change the root mount

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

Registers

registervalue
eax217, the syscall number
ebxconst char *new_root
ecxconst char *put_old
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/pivot_root