syscall.sh / sh / fstatfs

fstatfs

get filesystem statistics

sys_fstatfs(unsigned int fd, struct statfs *buf)
number100 (0x64)
abicommon
entry pointsys_fstatfs
sinceLinux 5.0
man pagefstatfs(2)
sourceelixir.bootlin.com

Registers

registervalue
r3100, the syscall number
r4unsigned int fd
r5struct statfs *buf
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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