syscall.sh / sparc64 / linkat
linkat
make a new name for a file
sys_linkat(int olddfd, const char *oldname, int newdfd, const char *newname, int flags)
| number | 292 (0x124) |
|---|---|
| abi | common |
| entry point | sys_linkat |
| since | Linux 5.0 |
| man page | linkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 292, the syscall number |
o0 | int olddfd |
o1 | const char *oldname |
o2 | int newdfd |
o3 | const char *newname |
o4 | int flags |
o0 | the return value |
Then run t 0x6d 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
- m68k 296
- microblaze 303
- nios2 37
- openrisc 37
- parisc 283
- sh 303
- sparc 292
- xtensa 293
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc64/linkat