1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ipc_init_proc_interface</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="ipc.html#idp1124933524" title="IPC utilities"><link rel="prev" href="API-ipc-init-ids.html" title="ipc_init_ids"><link rel="next" href="API-ipc-findkey.html" title="ipc_findkey"></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">ipc_init_proc_interface</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ipc-init-ids.html">Prev</a> </td><th width="60%" align="center">IPC utilities</th><td width="20%" align="right"> <a accesskey="n" href="API-ipc-findkey.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ipc-init-proc-interface"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ipc_init_proc_interface — 2 create a proc interface for sysipc types using a seq_file interface. 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">ipc_init_proc_interface </b>(</code></td><td>const char * <var class="pdparam">path</var>, </td></tr><tr><td> </td><td>const char * <var class="pdparam">header</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">ids</var>, </td></tr><tr><td> </td><td>int (*<var class="pdparam">show</var>) 4 <code>(</code>struct seq_file *, void *<code>)</code><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1124955348"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>path</code></em></span></dt><dd><p> 5 Path in procfs 6 </p></dd><dt><span class="term"><em class="parameter"><code>header</code></em></span></dt><dd><p> 7 Banner to be printed at the beginning of the file. 8 </p></dd><dt><span class="term"><em class="parameter"><code>ids</code></em></span></dt><dd><p> 9 ipc id table to iterate. 10 </p></dd><dt><span class="term"><em class="parameter"><code>show</code></em></span></dt><dd><p> 11 show routine. 12 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ipc-init-ids.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ipc.html#idp1124933524">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-ipc-findkey.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ipc_init_ids</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">ipc_findkey</span></td></tr></table></div></body></html> 13