syscall.sh / x64 / linkat

linkat

make a new name for a file

sys_linkat(int olddfd, const char *oldname, int newdfd, const char *newname, int flags)
number265 (0x109)
abicommon
entry pointsys_linkat
sinceLinux 3.3
man pagelinkat(2)
sourceelixir.bootlin.com

Registers

registervalue
rax265, the syscall number
rdiint olddfd
rsiconst char *oldname
rdxint newdfd
r10const char *newname
r8int flags
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/linkat