syscall.sh / loongarch64 / unlinkat
unlinkat
delete a name and possibly the file it refers to
sys_unlinkat(int dfd, const char *pathname, int flag)
| number | 35 (0x23) |
|---|---|
| abi | common |
| entry point | sys_unlinkat |
| since | Linux 5.19 |
| man page | unlinkat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 35, the syscall number |
a0 | int dfd |
a1 | const char *pathname |
a2 | int flag |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 263
- x86 301
- arm64 35
- arm 328
- riscv64 35
- x32 1073742087
- ppc64 292
- ppc 292
- s390x 294
- mips64 5253
- mipsn32 6257
- mipso32 4294
- alpha 456
- arc 35
- csky 35
- hexagon 35
- m68k 294
- microblaze 301
- nios2 35
- openrisc 35
- parisc 281
- sh 301
- sparc 290
- sparc64 290
- xtensa 291
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/unlinkat