<!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/kmods/kmod.c 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 Page</span></a></li> <li><a href="classes.html"><span>Data 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> <u>S</u>earch for </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 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> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_a0cadbe588a0f0b62517333d702e3cca.html">kmods</a></div> <h1>kmod.c File Reference</h1><code>#include <<a class="el" href="types_8h-source.html">ubixos/types.h</a>></code><br> <code>#include <<a class="el" href="kmod_8h-source.html">ubixos/kmod.h</a>></code><br> <code>#include <<a class="el" href="sched_8h-source.html">ubixos/sched.h</a>></code><br> <code>#include <<a class="el" href="elf_8h-source.html">ubixos/elf.h</a>></code><br> <code>#include <<a class="el" href="kpanic_8h-source.html">ubixos/kpanic.h</a>></code><br> <code>#include <<a class="el" href="lists_8h-source.html">ubixos/lists.h</a>></code><br> <code>#include <<a class="el" href="spinlock_8h-source.html">ubixos/spinlock.h</a>></code><br> <code>#include <<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>></code><br> <code>#include <<a class="el" href="kmalloc_8h-source.html">lib/kmalloc.h</a>></code><br> <code>#include <<a class="el" href="vfs_8h-source.html">vfs/vfs.h</a>></code><br> <code>#include <<a class="el" href="vmm_8h-source.html">vmm/vmm.h</a>></code><br> <code>#include <<a class="el" href="string_8h-source.html">string.h</a>></code><br> <code>#include <<a class="el" href="assert_8h-source.html">assert.h</a>></code><br> <p> Include dependency graph for kmod.c:<p><center><img src="kmod_8c__incl.png" border="0" usemap="#src/sys/kmods/kmod.c_map" alt=""></center> <map name="src/sys/kmods/kmod.c_map"> <area href="types_8h.html" shape="rect" coords="588,349,708,376" alt=""> <area href="kmod_8h.html" shape="rect" coords="410,96,530,123" alt=""> <area href="sched_8h.html" shape="rect" coords="408,172,531,199" alt=""> <area href="elf_8h.html" shape="rect" coords="239,172,338,199" alt=""> <area href="kpanic_8h.html" shape="rect" coords="224,223,352,249" alt=""> <area href="lists_8h.html" shape="rect" coords="234,273,343,300" alt=""> <area href="spinlock_8h.html" shape="rect" coords="400,324,539,351" alt=""> <area href="kprintf_8h.html" shape="rect" coords="420,375,519,401" alt=""> <area href="kmalloc_8h.html" shape="rect" coords="416,425,523,452" alt=""> <area href="vfs_8h.html" shape="rect" coords="431,476,508,503" alt=""> <area href="vmm_8h.html" shape="rect" coords="235,527,342,553" alt=""> <area href="string_8h.html" shape="rect" coords="252,577,324,604" alt=""> <area href="assert_8h.html" shape="rect" coords="251,628,326,655" alt=""> </map> <p> <a href="kmod_8c-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>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="kmod_8c.html#f2a085a786b2cf77d53da7f364948cd4">kmod_add</a> (const char *kmod_file, const char *<a class="el" href="pci_8c.html#8f8f80d37794cde9472343e4487ba3eb">name</a>)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="kmod_8c.html#92b68dbf95bf5d651555a4c02ee1a74b">kmod_load</a> (const char *kmod_file)</td></tr> <tr><td colspan="2"><br><h2>Variables</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="struct__list__t.html">List_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="kmod_8c.html#ef05a41ecb31fc37647810e583f3d37b">List</a> = 0x0</td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="f2a085a786b2cf77d53da7f364948cd4"></a><!-- doxytag: member="kmod.c::kmod_add" ref="f2a085a786b2cf77d53da7f364948cd4" args="(const char *kmod_file, const char *name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> kmod_add </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>kmod_file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em></td><td> </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="kmod_8c-source.html#l00046">46</a> of file <a class="el" href="kmod_8c-source.html">kmod.c</a>. <p> References <a class="el" href="lists_8h.html#ddb302e5cc32ff6fd65b02523e648764">CreateItem()</a>, <a class="el" href="lists_8h-source.html#l00011">_item_t::data</a>, <a class="el" href="lists_8h.html#5f388b13396e1961b2a85720edf33712">InitializeList()</a>, <a class="el" href="lists_8h.html#f4e720b926108dabb1a08d09798e76d0">InsertItemAtFront()</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="kmod_8c-source.html#l00075">kmod_load()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="kmod_8c-source.html#l00044">List</a>, and <a class="el" href="types_8h-source.html#l00036">NULL</a>. <p> Here is the call graph for this function:<p><center><img src="kmod_8c_f2a085a786b2cf77d53da7f364948cd4_cgraph.png" border="0" usemap="#kmod_8c_f2a085a786b2cf77d53da7f364948cd4_cgraph_map" alt=""></center> <map name="kmod_8c_f2a085a786b2cf77d53da7f364948cd4_cgraph_map"> <area href="lists_8h.html#ddb302e5cc32ff6fd65b02523e648764" shape="rect" coords="168,6,264,32" alt=""> <area href="lists_8h.html#5f388b13396e1961b2a85720edf33712" shape="rect" coords="165,56,267,83" alt=""> <area href="lists_8h.html#f4e720b926108dabb1a08d09798e76d0" shape="rect" coords="147,107,285,134" alt=""> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="333,208,408,235" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="456,208,523,235" alt=""> <area href="kmod_8h.html#c9997cda5e69bc2c1fce8c8c343b3d4f" shape="rect" coords="168,259,264,286" alt=""> </map> </div> </div><p> <a class="anchor" name="92b68dbf95bf5d651555a4c02ee1a74b"></a><!-- doxytag: member="kmod.c::kmod_load" ref="92b68dbf95bf5d651555a4c02ee1a74b" args="(const char *kmod_file)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> kmod_load </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>kmod_file</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="kmod_8c-source.html#l00075">75</a> of file <a class="el" href="kmod_8c-source.html">kmod.c</a>. <p> References <a class="el" href="sched_8c-source.html#l00051">_current</a>, <a class="el" href="assert_8h-source.html#l00064">assert</a>, <a class="el" href="elf_8h-source.html#l00102">elfHeader::eEntry</a>, <a class="el" href="elf_8h-source.html#l00172">ELF32_R_SYM</a>, <a class="el" href="elf_8h-source.html#l00173">ELF32_R_TYPE</a>, <a class="el" href="elf_8c-source.html#l00107">elfGetRelType()</a>, <a class="el" href="elf_8h-source.html#l00108">elfHeader::ePhnum</a>, <a class="el" href="elf_8h-source.html#l00103">elfHeader::ePhoff</a>, <a class="el" href="elf_8h-source.html#l00110">elfHeader::eShnum</a>, <a class="el" href="elf_8h-source.html#l00104">elfHeader::eShoff</a>, <a class="el" href="elf_8h-source.html#l00111">elfHeader::eShstrndx</a>, <a class="el" href="file_8c-source.html#l00398">fclose()</a>, <a class="el" href="file_8c-source.html#l00274">fopen()</a>, <a class="el" href="file_8c-source.html#l00178">fread()</a>, <a class="el" href="file_8c-source.html#l00208">fseek()</a>, <a class="el" href="sched_8h-source.html#l00055">taskStruct::id</a>, <a class="el" href="kmalloc_8c-source.html#l00351">kfree()</a>, <a class="el" href="kmalloc_8c-source.html#l00247">kmalloc()</a>, <a class="el" href="kpanic_8c-source.html#l00042">kpanic()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="kmod_8h-source.html#l00035">LD_START</a>, <a class="el" href="memset_8c-source.html#l00037">memset()</a>, <a class="el" href="paging_8h-source.html#l00052">PAGE_DEFAULT</a>, <a class="el" href="elf_8h-source.html#l00120">elfProgramHeader::phMemsz</a>, <a class="el" href="elf_8h-source.html#l00117">elfProgramHeader::phVaddr</a>, <a class="el" href="elf_8h-source.html#l00081">PT_DYNAMIC</a>, <a class="el" href="elf_8h-source.html#l00091">PT_GNU_STACK</a>, <a class="el" href="elf_8h-source.html#l00080">PT_LOAD</a>, <a class="el" href="elf_8h-source.html#l00093">PT_PAX_FLAGS</a>, <a class="el" href="elf_8h-source.html#l00040">R_386_32</a>, <a class="el" href="elf_8h-source.html#l00041">R_386_PC32</a>, <a class="el" href="elf_8h-source.html#l00047">R_386_RELATIVE</a>, <a class="el" href="elf_8h-source.html#l00131">elfSectionHeader::shSize</a>, <a class="el" href="string_8c-source.html#l00032">strcmp()</a>, <a class="el" href="paging_8c-source.html#l00160">vmm_remapPage()</a>, <a class="el" href="vmm__memory_8c-source.html#l00186">vmmFindFreePage()</a>, and <a class="el" href="ap-boot_8S-source.html#l00052">x1000</a>. <p> Referenced by <a class="el" href="kmod_8c-source.html#l00046">kmod_add()</a>. <p> Here is the call graph for this function:<p><center><img src="kmod_8c_92b68dbf95bf5d651555a4c02ee1a74b_cgraph.png" border="0" usemap="#kmod_8c_92b68dbf95bf5d651555a4c02ee1a74b_cgraph_map" alt=""></center> <map name="kmod_8c_92b68dbf95bf5d651555a4c02ee1a74b_cgraph_map"> <area href="elf_8h.html#18371af6e681af62767a92ac64af1ebb" shape="rect" coords="162,5,276,32" alt=""> <area href="file_8h.html#872c22366b4c63f4bdb10cd3b7980b11" shape="rect" coords="188,512,250,539" alt=""> <area href="kmalloc_8h.html#aa9ed6886459604cf73ccdbf6410e487" shape="rect" coords="382,461,438,488" alt=""> <area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="675,696,742,723" alt=""> <area href="lib_2string_8h.html#ce4b911463887af5e748326323e99a23" shape="rect" coords="540,157,618,184" alt=""> <area href="file_8h.html#d6a41ac88a7d46d574e8a675fdde136c" shape="rect" coords="188,385,250,412" alt=""> <area href="kmalloc_8h.html#150eab2ac4ce4553e21ca10e7f441762" shape="rect" coords="372,563,447,589" alt=""> <area href="lib_2string_8h.html#6f3dcb20ff11ff9db5904c3cfb61a38c" shape="rect" coords="546,81,612,108" alt=""> <area href="file_8h.html#3b06878a03209e88c008c77234b89359" shape="rect" coords="191,664,247,691" alt=""> <area href="file_8h.html#80528d8335cd52755f5d6a92e4f08391" shape="rect" coords="190,715,248,741" alt=""> <area href="kpanic_8h.html#db9a182aa071791a306163d50d653deb" shape="rect" coords="546,765,612,792" alt=""> <area href="paging_8h.html#a05f8d8947fb5bcec87fc6661f83243e" shape="rect" coords="150,765,288,792" alt=""> <area href="vmm_8h.html#976cf3919bf7c77c868021ec9374593b" shape="rect" coords="338,765,482,792" alt=""> <area href="spinlock_8h.html#2cd9a4502680fb8e7f0fe6b029e558b1" shape="rect" coords="539,551,619,577" alt=""> <area href="spinlock_8h.html#dd996cbbb3b9826dd9c8cf02b66a4c65" shape="rect" coords="531,696,627,723" alt=""> <area href="lib_2string_8h.html#c38cd16373d98782e1465bd3d5aba470" shape="rect" coords="378,259,442,285" alt=""> <area href="lib_2string_8h.html#dcec9a82a6a276e8edb0fd4fc26fe8f2" shape="rect" coords="382,309,438,336" alt=""> <area href="lib_2string_8h.html#9af7251f0c1b875e0e34b8e2b94dda39" shape="rect" coords="379,360,440,387" alt=""> <area href="mount_8h.html#a8cc926aa9badb781158b6738b1b0f2d" shape="rect" coords="351,107,468,133" alt=""> </map> </div> </div><p> <hr><h2>Variable Documentation</h2> <a class="anchor" name="ef05a41ecb31fc37647810e583f3d37b"></a><!-- doxytag: member="kmod.c::List" ref="ef05a41ecb31fc37647810e583f3d37b" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="struct__list__t.html">List_t</a>* <a class="el" href="kmod_8c.html#ef05a41ecb31fc37647810e583f3d37b">List</a> = 0x0 </td> </tr> </table> </div> <div class="memdoc"> <p> <p> Definition at line <a class="el" href="kmod_8c-source.html#l00044">44</a> of file <a class="el" href="kmod_8c-source.html">kmod.c</a>. <p> Referenced by <a class="el" href="kmod_8c-source.html#l00046">kmod_add()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:24:32 2006 for UbixOS V2 by <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>