1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>call_usermodehelper_exec</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="modload.html#idp1125664212" title="Module Loading"><link rel="prev" href="API-call-usermodehelper-setup.html" title="call_usermodehelper_setup"><link rel="next" href="API-call-usermodehelper.html" title="call_usermodehelper"></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">call_usermodehelper_exec</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-call-usermodehelper-setup.html">Prev</a> </td><th width="60%" align="center">Module Loading</th><td width="20%" align="right"> <a accesskey="n" href="API-call-usermodehelper.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-call-usermodehelper-exec"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>call_usermodehelper_exec — 2 start a usermode application 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">int <b class="fsfunc">call_usermodehelper_exec </b>(</code></td><td>struct subprocess_info * <var class="pdparam">sub_info</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">wait</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1125698148"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sub_info</code></em></span></dt><dd><p> 4 information about the subprocessa 5 </p></dd><dt><span class="term"><em class="parameter"><code>wait</code></em></span></dt><dd><p> 6 wait for the application to finish and return status. 7 when UMH_NO_WAIT don't wait at all, but you get no useful error back 8 when the program couldn't be exec'ed. This makes it safe to call 9 from interrupt context. 10 </p></dd></dl></div></div><div class="refsect1"><a name="idp1125701012"></a><h2>Description</h2><p> 11 Runs a user-space application. The application is started 12 asynchronously if wait is not set, and runs as a child of keventd. 13 (ie. it runs with full root capabilities). 14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-call-usermodehelper-setup.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="modload.html#idp1125664212">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-call-usermodehelper.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">call_usermodehelper_setup</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">call_usermodehelper</span></td></tr></table></div></body></html> 15