syscall.sh / mipsn32 / chroot
chroot
change root directory
sys_chroot(const char *filename)
| number | 6156 (0x180c) |
|---|---|
| abi | n32 |
| entry point | sys_chroot |
| since | Linux 5.0 |
| man page | chroot(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6156, the syscall number |
a0 | const char *filename |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 161
- x86 61
- arm64 51
- arm 61
- riscv64 51
- x32 1073741985
- loongarch64 51
- ppc64 61
- ppc 61
- s390x 61
- mips64 5156
- mipso32 4061
- alpha 61
- arc 51
- csky 51
- hexagon 51
- m68k 61
- microblaze 61
- nios2 51
- openrisc 51
- parisc 61
- sh 61
- sparc 61
- sparc64 61
- xtensa 174
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/chroot