syscall.sh / m68k / linkat
linkat
make a new name for a file
sys_linkat(int olddfd, const char *oldname, int newdfd, const char *newname, int flags)
| number | 296 (0x128) |
|---|---|
| abi | common |
| entry point | sys_linkat |
| since | Linux 5.0 |
| man page | linkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 296, the syscall number |
d1 | int olddfd |
d2 | const char *oldname |
d3 | int newdfd |
d4 | const char *newname |
d5 | int flags |
d0 | the return value |
Then run trap #0 to enter the kernel.
Same syscall on other architectures
- x64 265
- x86 303
- arm64 37
- arm 330
- riscv64 37
- x32 1073742089
- loongarch64 37
- ppc64 294
- ppc 294
- s390x 296
- mips64 5255
- mipsn32 6259
- mipso32 4296
- alpha 458
- arc 37
- csky 37
- hexagon 37
- 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/m68k/linkat