syscall.sh / x64 / fstatfs

fstatfs

get filesystem statistics

sys_fstatfs(unsigned int fd, struct statfs *buf)
number138 (0x8a)
abicommon
entry pointsys_fstatfs
sinceLinux 3.3
man pagefstatfs(2)
sourceelixir.bootlin.com

Registers

registervalue
rax138, the syscall number
rdiunsigned int fd
rsistruct statfs *buf
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/x64/fstatfs