syscall.sh / x64 / lstat

lstat

get file status

sys_newlstat(const char *filename, struct stat *statbuf)
number6 (0x6)
abicommon
entry pointsys_newlstat
sinceLinux 3.3
man pagelstat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax6, the syscall number
rdiconst char *filename
rsistruct stat *statbuf
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/lstat