syscall.sh / nios2 / getcwd

getcwd

get current working directory

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

Registers

registervalue
r217, the syscall number
r4char *buf
r5unsigned long size
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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