syscall.sh / sh / tgkill
tgkill
send a signal to a thread
sys_tgkill(pid_t tgid, pid_t pid, int sig)
| number | 270 (0x10e) |
|---|---|
| abi | common |
| entry point | sys_tgkill |
| since | Linux 5.0 |
| man page | tgkill(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 270, the syscall number |
r4 | pid_t tgid |
r5 | pid_t pid |
r6 | int sig |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 234
- x86 270
- arm64 131
- arm 268
- riscv64 131
- x32 1073742058
- loongarch64 131
- ppc64 250
- ppc 250
- s390x 241
- mips64 5225
- mipsn32 6229
- mipso32 4266
- alpha 424
- arc 131
- csky 131
- hexagon 131
- m68k 265
- microblaze 270
- nios2 131
- openrisc 131
- parisc 259
- sparc 211
- sparc64 211
- xtensa 125
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/tgkill