syscall.sh / x64 / link

link

make a new name for a file

sys_link(const char *oldname, const char *newname)
number86 (0x56)
abicommon
entry pointsys_link
sinceLinux 3.3
man pagelink(2)
sourceelixir.bootlin.com

Registers

registervalue
rax86, 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/link