syscall.sh / alpha / getcwd

getcwd

get current working directory

sys_getcwd(char *buf, unsigned long size)
number367 (0x16f)
abicommon
entry pointsys_getcwd
sinceLinux 5.0
man pagegetcwd(2)
sourceelixir.bootlin.com

Registers

registervalue
v0367, the syscall number
a0char *buf
a1unsigned long size
v0the return value

Then run callsys to enter the kernel.

Same syscall on other architectures

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