syscall.sh / xtensa / getcwd

getcwd

get current working directory

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

Registers

registervalue
a243, the syscall number
a6char *buf
a3unsigned long size
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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