syscall.sh / x64 / chdir

chdir

change working directory

sys_chdir(const char *filename)
number80 (0x50)
abicommon
entry pointsys_chdir
sinceLinux 3.3
man pagechdir(2)
sourceelixir.bootlin.com

Registers

registervalue
rax80, the syscall number
rdiconst char *filename
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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