syscall.sh / nios2 / cachestat
cachestat
query the page cache statistics of a file
sys_cachestat(unsigned int fd, struct cachestat_range *cstat_range, struct cachestat *cstat, unsigned int flags)
| number | 451 (0x1c3) |
|---|---|
| abi | common |
| entry point | sys_cachestat |
| since | Linux 6.5 |
| man page | cachestat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r2 | 451, the syscall number |
r4 | unsigned int fd |
r5 | struct cachestat_range *cstat_range |
r6 | struct cachestat *cstat |
r7 | unsigned int flags |
r2 | the return value |
Then run trap to enter the kernel.
Same syscall on other architectures
- x64 451
- x86 451
- arm64 451
- arm 451
- riscv64 451
- x32 1073742275
- loongarch64 451
- ppc64 451
- ppc 451
- s390x 451
- mips64 5451
- mipsn32 6451
- mipso32 4451
- alpha 561
- arc 451
- csky 451
- hexagon 451
- m68k 451
- microblaze 451
- openrisc 451
- parisc 451
- sh 451
- sparc 451
- sparc64 451
- xtensa 451
Get this as JSON: https://api.syscall.sh/v2/syscalls/nios2/cachestat