1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>do_jobctl_trap</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-do-signal-stop.html" title="do_signal_stop"><link rel="next" href="API-signal-delivered.html" title="signal_delivered"></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">do_jobctl_trap</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-do-signal-stop.html">Prev</a> </td><th width="60%" align="center">Internal Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-signal-delivered.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-do-jobctl-trap"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>do_jobctl_trap — 2 take care of ptrace jobctl traps 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">do_jobctl_trap </b>(</code></td><td> <var class="pdparam">void</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1107932100"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>void</code></em></span></dt><dd><p> 4 no arguments 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1107933708"></a><h2>Description</h2><p> 6 </p><p> 7 8 When PT_SEIZED, it's used for both group stop and explicit 9 SEIZE/INTERRUPT traps. Both generate PTRACE_EVENT_STOP trap with 10 accompanying siginfo. If stopped, lower eight bits of exit_code contain 11 the stop signal; otherwise, <code class="constant">SIGTRAP</code>. 12 </p><p> 13 14 When !PT_SEIZED, it's used only for group stop trap with stop signal 15 number as exit_code and no siginfo. 16</p></div><div class="refsect1"><a name="idp1107935148"></a><h2>CONTEXT</h2><p> 17 Must be called with <em class="parameter"><code>current</code></em>->sighand->siglock held, which may be 18 released and re-acquired before returning with intervening sleep. 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-do-signal-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-signal-delivered.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">do_signal_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">signal_delivered</span></td></tr></table></div></body></html> 20