'\" t .\" Title: ptrace_trap_notify .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "PTRACE_TRAP_NOTIFY" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Driver Basics" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ptrace_trap_notify \- schedule trap to notify ptracer .SH "SYNOPSIS" .HP \w'void\ ptrace_trap_notify('u .BI "void ptrace_trap_notify(struct\ task_struct\ *\ " "t" ");" .SH "ARGUMENTS" .PP \fIt\fR .RS 4 tracee wanting to notify tracer .RE .SH "DESCRIPTION" .PP This function schedules sticky ptrace trap which is cleared on the next TRAP_STOP to notify ptracer of an event\&. \fIt\fR must have been seized by ptracer\&. .PP If \fIt\fR is running, STOP trap will be taken\&. If trapped for STOP and ptracer is listening for events, tracee is woken up so that it can re\-trap for the new event\&. If trapped otherwise, STOP trap will be eventually taken without returning to userland after the existing traps are finished by PTRACE_CONT\&. .SH "CONTEXT" .PP Must be called with \fItask\fR\->sighand\->siglock held\&. .SH "COPYRIGHT" .br