syscall.sh / x64 / access

access

check user's permissions for a file

sys_access(const char *filename, int mode)
number21 (0x15)
abicommon
entry pointsys_access
sinceLinux 3.3
man pageaccess(2)
sourceelixir.bootlin.com

Registers

registervalue
rax21, the syscall number
rdiconst char *filename
rsiint mode
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/access