syscall.sh / riscv64 / statfs

statfs

get filesystem statistics

sys_statfs(const char *path, struct statfs *buf)
number43 (0x2b)
abi64
entry pointsys_statfs
sinceLinux 4.15
man pagestatfs(2)
sourceelixir.bootlin.com

Registers

registervalue
a743, the syscall number
a0const char *path
a1struct statfs *buf
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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