syscall.sh / x32 / chdir

chdir

change working directory

sys_chdir(const char *filename)
number1073741904 (0x40000050)
abicommon
entry pointsys_chdir
sinceLinux 3.4
man pagechdir(2)
sourceelixir.bootlin.com

Registers

registervalue
rax1073741904, 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/x32/chdir