syscall.sh / x32 / 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)
number1073742275 (0x400001c3)
abicommon
entry pointsys_cachestat
sinceLinux 6.5
man pagecachestat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073742275, the syscall number
rdiunsigned int fd
rsistruct cachestat_range *cstat_range
rdxstruct cachestat *cstat
r10unsigned int flags
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/cachestat