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

Registers

registervalue
r1451, the syscall number
r2unsigned int fd
r3struct cachestat_range *cstat_range
r4struct cachestat *cstat
r5unsigned int flags
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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