1SYS_TGKILL(9) Driver Basics SYS_TGKILL(9)
2
3
4
6 sys_tgkill - send signal to one specific thread
7
9 long sys_tgkill(pid_t tgid, pid_t pid, int sig);
10
12 tgid
13 the thread group ID of the thread
14
15 pid
16 the PID of the thread
17
18 sig
19 signal to be sent
20
22 This syscall also checks the tgid and returns -ESRCH even if the PID
23 exists but it´s not belonging to the target process anymore. This
24 method solves the problem of threads exiting and PIDs getting reused.
25
27Kernel Hackers Manual 2.6. June 2019 SYS_TGKILL(9)