fstatfs on loongarch64
get filesystem statistics
sys_fstatfs(unsigned int fd, struct statfs *buf)
| number | 44 (0x2c) |
|---|---|
| abi | 64 |
| entry point | sys_fstatfs |
| since | Linux 5.19 or earlier (5.19 is the first release scanned for loongarch64) |
| man page | fstatfs(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 44, the syscall number |
a0 | unsigned int fd |
a1 | struct statfs *buf |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 138
- x86 100
- arm64 44
- arm 100
- riscv64 44
- ia32 100
- x32 1073741962
- ppc64 100
- ppc 100
- s390x 100
- mips64 5135
- mipsn32 6135
- mipso32 4100
- alpha 329
- blackfin 100, removed in 4.17
- cris 100, removed in 4.17
- frv 100, removed in 4.17
- ia64 1104, removed in 6.7
- m32r 100, removed in 4.17
- m68k 100
- microblaze 100
- mn10300 100, removed in 4.17
- parisc 100
- score 1055, removed in 4.17
- sh 100
- sparc 158
- sparc64 158
- tilegx 44, removed in 4.17
- xtensa 185
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/fstatfs