chdir on tilepro
change working directory
sys_chdir(const char *filename)
| number | 49 (0x31) |
|---|---|
| abi | common |
| entry point | sys_chdir |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | chdir(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 49, the syscall number |
r0 | const char *filename |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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 80
- x86 12
- arm64 49
- arm 12
- riscv64 49
- ia32 12
- x32 1073741904
- loongarch64 49
- ppc64 12
- ppc 12
- s390x 12
- mips64 5078
- mipsn32 6078
- mipso32 4012
- alpha 12
- arc 49
- blackfin 12, removed in 4.17
- cris 12, removed in 4.17
- csky 49
- frv 12, removed in 4.17
- hexagon 49
- ia64 1034, removed in 6.7
- m32r 12, removed in 4.17
- m68k 12
- metag 49, removed in 4.17
- microblaze 12
- mn10300 12, removed in 4.17
- nds32 49, removed in 5.18
- nios2 49
- openrisc 49
- parisc 12
- score 49, removed in 4.17
- sh 12
- sparc 12
- sparc64 12
- tilegx 49, removed in 4.17
- xtensa 41
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/chdir?kernel=all