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)
| number | 37 (0x25) |
|---|---|
| abi | common |
| entry point | sys_linkat |
| since | Linux 4.15 |
| man page | linkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 37, the syscall number |
a0 | int olddfd |
a1 | const char *oldname |
a2 | int newdfd |
a3 | const char *newname |
a4 | int flags |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 265
- x86 303
- arm64 37
- arm 330
- x32 1073742089
- loongarch64 37
- ppc64 294
- ppc 294
- s390x 296
- mips64 5255
- mipsn32 6259
- mipso32 4296
- alpha 458
- arc 37
- csky 37
- hexagon 37
- m68k 296
- microblaze 303
- nios2 37
- openrisc 37
- parisc 283
- sh 303
- sparc 292
- sparc64 292
- xtensa 293
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/linkat