<?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>Linux Kernel Procfs Guide</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Linux Kernel Procfs Guide" /><link rel="next" href="pr01.html" title="Preface" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Linux Kernel Procfs Guide</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="pr01.html">Next</a></td></tr></table><hr /></div><div class="book" title="Linux Kernel Procfs Guide"><div class="titlepage"><div><div><h1 class="title"><a id="LKProcfsGuide"></a>Linux Kernel Procfs Guide</h1></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Erik</span> <span class="othername">(J.A.K.)</span> <span class="surname">Mouw</span></h3><div class="affiliation"><div class="address"><p><br />             <code class="email"><<a class="email" href="mailto:mouw@nl.linux.org">mouw@nl.linux.org</a>></code><br />           </p></div></div></div><div class="othercredit"><h3 class="othercredit"></h3><span class="contrib"> This software and documentation were written while working on the LART computing board (<a class="ulink" href="http://www.lartmaker.nl/" target="_top">http://www.lartmaker.nl/</a>), which was sponsored by the Delt University of Technology projects Mobile Multi-media Communications and Ubiquitous Communications. </span> </div></div></div><div><p class="copyright">Copyright © 2001 Erik Mouw</p></div><div><div class="legalnotice" title="Legal Notice"><a id="id3031478"></a><p> This documentation is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. </p><p> This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. </p><p> You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA </p><p> For more details see the file COPYING in the source distribution of Linux. </p></div></div><div><div class="revhistory"><table border="1" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="2"><b>Revision History</b></th></tr><tr><td align="left">Revision 1.0</td><td align="left">May 30, 2001</td></tr><tr><td align="left" colspan="2">Initial revision posted to linux-kernel</td></tr><tr><td align="left">Revision 1.1</td><td align="left">June 3, 2001</td></tr><tr><td align="left" colspan="2">Revised after comments from linux-kernel</td></tr></table></div></div></div><hr /></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="preface"><a href="pr01.html">Preface</a></span></dt><dt><span class="chapter"><a href="ch01.html">1. Introduction</a></span></dt><dt><span class="chapter"><a href="ch02.html">2. Managing procfs entries</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch02.html#regularfile">Creating a regular file</a></span></dt><dt><span class="sect1"><a href="ch02s02.html">Creating a symlink</a></span></dt><dt><span class="sect1"><a href="ch02s03.html">Creating a directory</a></span></dt><dt><span class="sect1"><a href="ch02s04.html">Removing an entry</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch03.html">3. Communicating with userland</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch03.html#Reading_data">Reading data</a></span></dt><dt><span class="sect1"><a href="ch03s02.html">Writing data</a></span></dt><dt><span class="sect1"><a href="ch03s03.html">A single call back for many files</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch04.html">4. Tips and tricks</a></span></dt><dd><dl><dt><span class="sect1"><a href="ch04.html#convenience">Convenience functions</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">Modules</a></span></dt><dt><span class="sect1"><a href="ch04s03.html">Mode and ownership</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch05.html">5. Example</a></span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="pr01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"> </td><td width="40%" align="right" valign="top"> Preface</td></tr></table></div></body></html>