syscall.sh / hexagon / 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
r617, the syscall number
r0char *buf
r1unsigned long size
r0the return value

Then run trap0(#1) to enter the kernel.

Same syscall on other architectures

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