Newer
Older
UbixOS / doc / html / device_8h.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>UbixOS V2: src/sys/include/sys/device.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_caf4200c438ae9601464168e21e8e4d8.html">include</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_d26f37d6397a53073c964316867e8d67.html">sys</a></div>
<h1>device.h File Reference</h1><code>#include &lt;<a class="el" href="types_8h-source.html">ubixos/types.h</a>&gt;</code><br>

<p>
Include dependency graph for device.h:<p><center><img src="device_8h__incl.png" border="0" usemap="#src/sys/include/sys/device.h_map" alt=""></center>
<map name="src/sys/include/sys/device.h_map">
<area href="types_8h.html" shape="rect" coords="266,5,386,32" alt="">
<area href="__types_8h.html" shape="rect" coords="436,5,540,32" alt="">
</map>

<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="device_8h__dep__incl.png" border="0" usemap="#src/sys/include/sys/device.hdep_map" alt=""></center>
<map name="src/sys/include/sys/device.hdep_map">
<area href="devfs_8c.html" shape="rect" coords="296,5,459,32" alt="">
<area href="buf_8h.html" shape="rect" coords="284,56,471,83" alt="">
<area href="ubixfs_8h.html" shape="rect" coords="265,385,489,412" alt="">
<area href="hd_8c.html" shape="rect" coords="819,436,944,463" alt="">
<area href="ffs_8h.html" shape="rect" coords="287,107,468,133" alt="">
<area href="ufs_8h.html" shape="rect" coords="285,157,469,184" alt="">
<area href="fdc_8c.html" shape="rect" coords="313,575,441,601" alt="">
<area href="device_8c.html" shape="rect" coords="300,625,455,652" alt="">
<area href="mount_8c.html" shape="rect" coords="301,676,453,703" alt="">
<area href="ffs_8c.html" shape="rect" coords="571,56,696,83" alt="">
<area href="hd_8h.html" shape="rect" coords="543,259,724,285" alt="">
<area href="init_8h.html" shape="rect" coords="777,208,985,235" alt="">
<area href="syscall_8c.html" shape="rect" coords="545,360,721,387" alt="">
<area href="block_8c.html" shape="rect" coords="551,411,716,437" alt="">
<area href="dirCache_8c.html" shape="rect" coords="539,461,728,488" alt="">
<area href="directory_8c.html" shape="rect" coords="540,512,727,539" alt="">
<area href="thread_8c.html" shape="rect" coords="547,563,720,589" alt="">
<area href="ubixfs_8c.html" shape="rect" coords="548,309,719,336" alt="">
<area href="ufs_8c.html" shape="rect" coords="569,107,697,133" alt="">
</map>

<p>
<a href="device_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdevice__interface.html">device_interface</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdevice__node.html">device_node</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structdevice__resource.html">device_resource</a></td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="device_8h.html#256b750ab99e3be9b83a9bfd37a22388">device_add</a> (int, char, struct <a class="el" href="structdevice__interface.html">device_interface</a> *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structdevice__node.html">device_node</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="device_8h.html#0002a4ec01ee11597c6751602f3e4c3d">device_find</a> (int major, int minor)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="device_8h.html#37fc0f624e03e0998fd2dd5922505ada">device_remove</a> (struct <a class="el" href="structdevice__node.html">device_node</a> *)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="256b750ab99e3be9b83a9bfd37a22388"></a><!-- doxytag: member="device.h::device_add" ref="256b750ab99e3be9b83a9bfd37a22388" args="(int, char, struct device_interface *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int device_add           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structdevice__interface.html">device_interface</a> *&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="device_8c-source.html#l00051">51</a> of file <a class="el" href="device_8c-source.html">device.c</a>.
<p>
References <a class="el" href="device_8c-source.html#l00037">devices</a>, <a class="el" href="device_8c-source.html#l00038">deviceSpinLock</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="structdevice__interface.html#92620413c2580ea3cf01e121bb54c254">device_interface::init</a>, <a class="el" href="device_8h-source.html#l00049">device_interface::initialized</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="device_8h-source.html#l00041">device_node::minor</a>, <a class="el" href="device_8h-source.html#l00037">device_node::next</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="device_8h-source.html#l00036">device_node::prev</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, and <a class="el" href="device_8h-source.html#l00040">device_node::type</a>.
<p>
Referenced by <a class="el" href="fdc_8c-source.html#l00063">fdc_init()</a>, and <a class="el" href="hd_8c-source.html#l00039">initHardDisk()</a>.
<p>
Here is the call graph for this function:<p><center><img src="device_8h_256b750ab99e3be9b83a9bfd37a22388_cgraph.png" border="0" usemap="#device_8h_256b750ab99e3be9b83a9bfd37a22388_cgraph_map" alt=""></center>
<map name="device_8h_256b750ab99e3be9b83a9bfd37a22388_cgraph_map">
<area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="152,335,227,362" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="697,411,764,438" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="691,284,771,311" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="683,82,779,108" alt="">
<area href="kmalloc_8c.html#f6c4ea5cb961c72548d92ff65d7e33a4" shape="rect" coords="276,234,396,260" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="275,360,397,387" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="507,360,573,387" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="501,208,579,235" alt="">
<area href="paging_8h.html#541f0b43826a40b9e978f5479080bb0e" shape="rect" coords="445,158,635,184" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="0002a4ec01ee11597c6751602f3e4c3d"></a><!-- doxytag: member="device.h::device_find" ref="0002a4ec01ee11597c6751602f3e4c3d" args="(int major, int minor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structdevice__node.html">device_node</a>* device_find           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>major</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>minor</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="device_8c-source.html#l00086">86</a> of file <a class="el" href="device_8c-source.html">device.c</a>.
<p>
References <a class="el" href="device_8c-source.html#l00037">devices</a>, <a class="el" href="device_8c-source.html#l00038">deviceSpinLock</a>, <a class="el" href="device_8h-source.html#l00038">device_node::devInfo</a>, <a class="el" href="device_8h-source.html#l00051">device_interface::major</a>, <a class="el" href="device_8h-source.html#l00041">device_node::minor</a>, <a class="el" href="device_8h-source.html#l00037">device_node::next</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, and <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>.
<p>
Referenced by <a class="el" href="devfs_8c-source.html#l00071">devfs_open()</a>, <a class="el" href="devfs_8c-source.html#l00114">devfs_read()</a>, <a class="el" href="devfs_8c-source.html#l00160">devfs_write()</a>, and <a class="el" href="mount_8c-source.html#l00047">vfs_mount()</a>.
<p>
Here is the call graph for this function:<p><center><img src="device_8h_0002a4ec01ee11597c6751602f3e4c3d_cgraph.png" border="0" usemap="#device_8h_0002a4ec01ee11597c6751602f3e4c3d_cgraph_map" alt=""></center>
<map name="device_8h_0002a4ec01ee11597c6751602f3e4c3d_cgraph_map">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="160,81,240,108" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="152,132,248,159" alt="">
<area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="296,56,397,83" alt="">
<area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="581,107,680,133" alt="">
<area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="447,56,508,83" alt="">
<area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="557,5,704,32" alt="">
<area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="561,56,700,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="37fc0f624e03e0998fd2dd5922505ada"></a><!-- doxytag: member="device.h::device_remove" ref="37fc0f624e03e0998fd2dd5922505ada" args="(struct device_node *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int device_remove           </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structdevice__node.html">device_node</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="device_8c-source.html#l00110">110</a> of file <a class="el" href="device_8c-source.html">device.c</a>.
<p>
References <a class="el" href="device_8c-source.html#l00037">devices</a>, <a class="el" href="device_8c-source.html#l00038">deviceSpinLock</a>, <a class="el" href="kmalloc_8c-source.html#l00351">kfree()</a>, <a class="el" href="device_8h-source.html#l00037">device_node::next</a>, <a class="el" href="types_8h-source.html#l00036">NULL</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, and <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>.
<p>
Here is the call graph for this function:<p><center><img src="device_8h_37fc0f624e03e0998fd2dd5922505ada_cgraph.png" border="0" usemap="#device_8h_37fc0f624e03e0998fd2dd5922505ada_cgraph_map" alt=""></center>
<map name="device_8h_37fc0f624e03e0998fd2dd5922505ada_cgraph_map">
<area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="179,158,235,184" alt="">
<area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="304,208,384,235" alt="">
<area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="296,259,392,286" alt="">
<area href="kmalloc_8c.html#eb1c3f1ef8eb9063c2e5c4af488dd2d0" shape="rect" coords="283,56,405,83" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="615,107,681,134" alt="">
<area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="305,158,383,184" alt="">
<area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="471,56,537,83" alt="">
<area href="8259_8h.html#2b9ec30943ddb0a2ef3bd7ccfd2026c0" shape="rect" coords="603,6,693,32" alt="">
<area href="stdarg_8h.html#621577c2df0ad5faa281223c56eeb7a5" shape="rect" coords="612,56,684,83" alt="">
<area href="vsprintf_8c.html#c2f4c669c6f6aa6caa5ab8adb1b07dd0" shape="rect" coords="777,70,852,96" alt="">
<area href="vsprintf_8c.html#3fa7c8ef8597579301cb4b5c59bc6d9a" shape="rect" coords="775,19,855,46" alt="">
<area href="sched_8h.html#08933fe6d593a1c78b9080359f15a0b7" shape="rect" coords="453,183,555,210" alt="">
<area href="spinlock_8h.html#8f9173fadeddafa01754d6cbcc630198" shape="rect" coords="765,234,864,260" alt="">
<area href="sched_8h.html#549a0c1cc47933fa045b200690965cbd" shape="rect" coords="617,183,679,210" alt="">
<area href="sched_8h.html#e969273d772018d111e1f0344eb550f8" shape="rect" coords="741,183,888,210" alt="">
<area href="sched_8h.html#086cc0adc0b6a3860ceeeb5bc5ea94ea" shape="rect" coords="745,132,884,159" alt="">
</map>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:20:22 2006 for UbixOS V2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>