syscall.sh / riscv64 / linkat

linkat

make a new name for a file

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

Registers

registervalue
a737, the syscall number
a0int olddfd
a1const char *oldname
a2int newdfd
a3const char *newname
a4int flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/linkat