syscall.sh / riscv64 / statx

statx

get file status (extended)

sys_statx(int dfd, const char *path, unsigned flags, unsigned mask, struct statx *buffer)
number291 (0x123)
abicommon
entry pointsys_statx
sinceLinux 4.15
man pagestatx(2)
sourceelixir.bootlin.com

Registers

registervalue
a7291, the syscall number
a0int dfd
a1const char *path
a2unsigned flags
a3unsigned mask
a4struct statx *buffer
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/statx