syscall.sh / sh / access

access

check user's permissions for a file

sys_access(const char *filename, int mode)
number33 (0x21)
abicommon
entry pointsys_access
sinceLinux 5.0
man pageaccess(2)
sourceelixir.bootlin.com

Registers

registervalue
r333, the syscall number
r4const char *filename
r5int mode
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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