1PTRACE_TRAP_NOTIFY(9)            Driver Basics           PTRACE_TRAP_NOTIFY(9)
2
3
4

NAME

6       ptrace_trap_notify - schedule trap to notify ptracer
7

SYNOPSIS

9       void ptrace_trap_notify(struct task_struct * t);
10

ARGUMENTS

12       t
13           tracee wanting to notify tracer
14

DESCRIPTION

16       This function schedules sticky ptrace trap which is cleared on the next
17       TRAP_STOP to notify ptracer of an event.  t must have been seized by
18       ptracer.
19
20       If t is running, STOP trap will be taken. If trapped for STOP and
21       ptracer is listening for events, tracee is woken up so that it can
22       re-trap for the new event. If trapped otherwise, STOP trap will be
23       eventually taken without returning to userland after the existing traps
24       are finished by PTRACE_CONT.
25

CONTEXT

27       Must be called with task->sighand->siglock held.
28
30Kernel Hackers Manual 3.10         June 2019             PTRACE_TRAP_NOTIFY(9)
Impressum