syscall.sh / x64 / rename

rename

change the name or location of a file

sys_rename(const char *oldname, const char *newname)
number82 (0x52)
abicommon
entry pointsys_rename
sinceLinux 3.3
man pagerename(2)
sourceelixir.bootlin.com

Registers

registervalue
rax82, the syscall number
rdiconst char *oldname
rsiconst char *newname
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/rename