1TRACEHOOK_GET_SIGNAL(9) Kernel Internals TRACEHOOK_GET_SIGNAL(9)
2
3
4
6 tracehook_get_signal - deliver synthetic signal to traced task
7
9 int tracehook_get_signal(struct task_struct * task,
10 struct pt_regs * regs, siginfo_t * info,
11 struct k_sigaction * return_ka);
12
14 task
15
16 current
17
18 regs
19 task_pt_regs(current)
20
21 info
22 details of synthetic signal
23
24 return_ka
25 sigaction for synthetic signal
26
28 Return zero to check for a real pending signal normally. Return -1
29 after releasing the siglock to repeat the check. Return a signal number
30 to induce an artifical signal delivery, setting *info and *return_ka to
31 specify its details and behavior.
32
33 The return_ka->sa_handler value controls the disposition of the signal,
34 no matter the signal number. For SIG_DFL, the return value is a
35 representative signal to indicate the behavior (e.g. SIGTERM for
36 death, SIGQUIT for core dump, SIGSTOP for job control stop, SIGTSTP for
37 stop unless in an orphaned pgrp), but the signal number reported will
38 be info->si_signo instead.
39
40 Called with task->sighand->siglock held, before dequeuing pending
41 signals.
42
43
44
45Kernel Hackers Manual 2.6. June 2019 TRACEHOOK_GET_SIGNAL(9)