syscall.sh / m68k / getcwd

getcwd

get current working directory

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

Registers

registervalue
d0183, the syscall number
d1char *buf
d2unsigned long size
d0the return value

Then run trap #0 to enter the kernel.

Same syscall on other architectures

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