syscall.sh / arm64 / getcwd

getcwd

get current working directory

sys_getcwd(char *buf, unsigned long size)
number17 (0x11)
abicommon
entry pointsys_getcwd
sinceLinux 3.7
man pagegetcwd(2)
sourceelixir.bootlin.com

Registers

registervalue
x817, the syscall number
x0char *buf
x1unsigned long size
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

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