syscall.sh / x64 / link
link
make a new name for a file
sys_link(const char *oldname, const char *newname)
| number | 86 (0x56) |
|---|---|
| abi | common |
| entry point | sys_link |
| since | Linux 3.3 |
| man page | link(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 86, the syscall number |
rdi | const char *oldname |
rsi | const char *newname |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x86 9
- arm 9
- x32 1073741910
- ppc64 9
- ppc 9
- s390x 9
- mips64 5084
- mipsn32 6084
- mipso32 4009
- alpha 9
- m68k 9
- microblaze 9
- parisc 9
- sh 9
- sparc 9
- sparc64 9
- xtensa 32
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/link