<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>Creating a directory</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Linux Kernel Procfs Guide" /><link rel="up" href="ch02.html" title="Chapter 2. Managing procfs entries" /><link rel="prev" href="ch02s02.html" title="Creating a symlink" /><link rel="next" href="ch02s04.html" title="Removing an entry" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Creating a directory</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Managing procfs entries</th><td width="20%" align="right"> <a accesskey="n" href="ch02s04.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="Creating a directory"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="Creating_a_directory"></a>Creating a directory</h2></div></div></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">struct proc_dir_entry* <b class="fsfunc">proc_mkdir</b>(</code></td><td>const char* <var class="pdparam">name</var>, </td></tr><tr><td> </td><td>struct proc_dir_entry* <var class="pdparam">parent</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div><p> Create a directory <em class="parameter"><code>name</code></em> in the procfs directory <em class="parameter"><code>parent</code></em>. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch02s04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Creating a symlink </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Removing an entry</td></tr></table></div></body></html>