syscall.sh / s390x / chdir

chdir

change working directory

sys_chdir(const char *filename)
number12 (0xc)
abicommon
entry pointsys_chdir
sinceLinux 4.16
man pagechdir(2)
sourceelixir.bootlin.com

Registers

registervalue
r112, the syscall number
r2const char *filename
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/chdir