chroot on metag
change root directory
sys_chroot(const char *filename)
| number | 51 (0x33) |
|---|---|
| abi | common |
| entry point | sys_chroot |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | chroot(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 51, the syscall number |
D1Ar1 | const char *filename |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 161
- x86 61
- arm64 51
- arm 61
- riscv64 51
- ia32 61
- x32 1073741985
- loongarch64 51
- ppc64 61
- ppc 61
- s390x 61
- mips64 5156
- mipsn32 6156
- mipso32 4061
- alpha 61
- arc 51
- blackfin 61, removed in 4.17
- cris 61, removed in 4.17
- csky 51
- frv 61, removed in 4.17
- hexagon 51
- ia64 1068, removed in 6.7
- m32r 61, removed in 4.17
- m68k 61
- microblaze 61
- mn10300 61, removed in 4.17
- nds32 51, removed in 5.18
- nios2 51
- openrisc 51
- parisc 61
- score 51, removed in 4.17
- sh 61
- sparc 61
- sparc64 61
- tilegx 51, removed in 4.17
- tilepro 51, removed in 4.17
- xtensa 174
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/chroot?kernel=all