cachestat on ia32

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)
abii386
entry pointsys_cachestat
sinceLinux 6.5
man pagecachestat(2)
sourceelixir.bootlin.com

Registers

registervalue
eax451, the syscall number
ebxunsigned int fd
ecxstruct cachestat_range *cstat_range
edxstruct cachestat *cstat
esiunsigned int flags
eaxthe return value

Then run int 0x80 to enter the kernel.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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