syscall.sh / loongarch64 / newfstatat
newfstatat
get file status
sys_newfstatat(int dfd, const char *filename, struct stat *statbuf, int flag)
| number | 79 (0x4f) |
|---|---|
| abi | 64 |
| entry point | sys_newfstatat |
| since | Linux 6.11 |
| man page | newfstatat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 79, the syscall number |
a0 | int dfd |
a1 | const char *filename |
a2 | struct stat *statbuf |
a3 | int flag |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/newfstatat