1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ptrace_trap_notify</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch01s07.html" title="Internal Functions"><link rel="prev" href="API-task-participate-group-stop.html" title="task_participate_group_stop"><link rel="next" href="API-do-notify-parent-cldstop.html" title="do_notify_parent_cldstop"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">ptrace_trap_notify</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-task-participate-group-stop.html">Prev</a> </td><th width="60%" align="center">Internal Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-do-notify-parent-cldstop.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ptrace-trap-notify"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ptrace_trap_notify — 2 schedule trap to notify ptracer 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">ptrace_trap_notify </b>(</code></td><td>struct task_struct * <var class="pdparam">t</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1107898788"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>t</code></em></span></dt><dd><p> 4 tracee wanting to notify tracer 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1107900396"></a><h2>Description</h2><p> 6 This function schedules sticky ptrace trap which is cleared on the next 7 TRAP_STOP to notify ptracer of an event. <em class="parameter"><code>t</code></em> must have been seized by 8 ptracer. 9 </p><p> 10 11 If <em class="parameter"><code>t</code></em> is running, STOP trap will be taken. If trapped for STOP and 12 ptracer is listening for events, tracee is woken up so that it can 13 re-trap for the new event. If trapped otherwise, STOP trap will be 14 eventually taken without returning to userland after the existing traps 15 are finished by PTRACE_CONT. 16</p></div><div class="refsect1"><a name="idp1107902284"></a><h2>CONTEXT</h2><p> 17 Must be called with <em class="parameter"><code>task</code></em>->sighand->siglock held. 18</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-task-participate-group-stop.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-do-notify-parent-cldstop.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">task_participate_group_stop</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">do_notify_parent_cldstop</span></td></tr></table></div></body></html> 19