syscall.sh / x64 / fchdir

fchdir

change working directory

sys_fchdir(unsigned int fd)
number81 (0x51)
abicommon
entry pointsys_fchdir
sinceLinux 3.3
man pagefchdir(2)
sourceelixir.bootlin.com

Registers

registervalue
rax81, the syscall number
rdiunsigned int fd
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/fchdir