Skip to content

Commit

Permalink
update documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
shengwen-tw committed Nov 15, 2023
1 parent 18689cf commit 6a868e5
Show file tree
Hide file tree
Showing 440 changed files with 4,232 additions and 4,348 deletions.
102 changes: 53 additions & 49 deletions annotated.html

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions bitops_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Tenok: include/kernel/bitops.h File Reference</title>
<title>Tenok: include/common/bitops.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
Expand Down Expand Up @@ -63,7 +63,7 @@

<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_2ae24886e77657f82343b4b0154efdc1.html">kernel</a></li> </ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0966d06610f72609fd9aa4979c2b5a92.html">common</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
Expand All @@ -77,19 +77,19 @@
</div><div class="textblock"><div class="dynheader">
Include dependency graph for bitops.h:</div>
<div class="dyncontent">
<div class="center"><img src="bitops_8h__incl.png" border="0" usemap="#ainclude_2kernel_2bitops_8h" alt=""/></div>
<map name="ainclude_2kernel_2bitops_8h" id="ainclude_2kernel_2bitops_8h">
<area shape="rect" title=" " alt="" coords="5,5,175,32"/>
<area shape="rect" title=" " alt="" coords="39,80,141,107"/>
<div class="center"><img src="bitops_8h__incl.png" border="0" usemap="#ainclude_2common_2bitops_8h" alt=""/></div>
<map name="ainclude_2common_2bitops_8h" id="ainclude_2common_2bitops_8h">
<area shape="rect" title=" " alt="" coords="5,5,192,32"/>
<area shape="rect" title=" " alt="" coords="47,80,150,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="bitops_8h__dep__incl.png" border="0" usemap="#ainclude_2kernel_2bitops_8hdep" alt=""/></div>
<map name="ainclude_2kernel_2bitops_8hdep" id="ainclude_2kernel_2bitops_8hdep">
<area shape="rect" title=" " alt="" coords="5,5,175,32"/>
<area shape="rect" href="log2_8h.html" title=" " alt="" coords="11,80,169,107"/>
<div class="center"><img src="bitops_8h__dep__incl.png" border="0" usemap="#ainclude_2common_2bitops_8hdep" alt=""/></div>
<map name="ainclude_2common_2bitops_8hdep" id="ainclude_2common_2bitops_8hdep">
<area shape="rect" title=" " alt="" coords="5,5,192,32"/>
<area shape="rect" href="log2_8h.html" title=" " alt="" coords="11,80,186,107"/>
</map>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions bitops_8h__dep__incl.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<map id="include/kernel/bitops.h" name="include/kernel/bitops.h">
<area shape="rect" id="node1" title=" " alt="" coords="5,5,175,32"/>
<area shape="rect" id="node2" href="$log2_8h.html" title=" " alt="" coords="11,80,169,107"/>
<map id="include/common/bitops.h" name="include/common/bitops.h">
<area shape="rect" id="node1" title=" " alt="" coords="5,5,192,32"/>
<area shape="rect" id="node2" href="$log2_8h.html" title=" " alt="" coords="11,80,186,107"/>
</map>
2 changes: 1 addition & 1 deletion bitops_8h__dep__incl.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79ffcb0c408b424810e22e19b18f4aa2
c9015ac5d4696d4e22720efaded32d61
Binary file modified bitops_8h__dep__incl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions bitops_8h__incl.map
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<map id="include/kernel/bitops.h" name="include/kernel/bitops.h">
<area shape="rect" id="node1" title=" " alt="" coords="5,5,175,32"/>
<area shape="rect" id="node2" title=" " alt="" coords="39,80,141,107"/>
<map id="include/common/bitops.h" name="include/common/bitops.h">
<area shape="rect" id="node1" title=" " alt="" coords="5,5,192,32"/>
<area shape="rect" id="node2" title=" " alt="" coords="47,80,150,107"/>
</map>
2 changes: 1 addition & 1 deletion bitops_8h__incl.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b45b5b81d51fe9353e785f9673e9e4c9
078a66a7d8f782c722826a19904ebb94
Binary file modified bitops_8h__incl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 32 additions & 29 deletions bitops_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Tenok: include/kernel/bitops.h Source File</title>
<title>Tenok: include/common/bitops.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
Expand Down Expand Up @@ -63,7 +63,7 @@

<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_2ae24886e77657f82343b4b0154efdc1.html">kernel</a></li> </ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0966d06610f72609fd9aa4979c2b5a92.html">common</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
Expand Down Expand Up @@ -108,34 +108,37 @@
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; set_bit(bit % BITS_PER_LONG, &amp;map[bit / BITS_PER_LONG]);</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;}</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> bitmap_get_bit(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *map, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> bit)</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;{</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordflow">return</span> map[bit / BITS_PER_LONG] &gt;&gt; (bit % BITS_PER_LONG) &amp; 1;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;}</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> find_first_bit(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *addr, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size)</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;{</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i * BITS_PER_LONG &lt; size; i++) {</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordflow">if</span>(addr[i]) {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">return</span> MIN(i * BITS_PER_LONG + __builtin_ffsl(addr[i]) - 1, size);</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; }</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; }</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;}</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> find_first_zero_bit(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *addr, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size)</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;{</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i * BITS_PER_LONG &lt; size; i++) {</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordflow">if</span>(addr[i] != ~0ul) {</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordflow">return</span> MIN(i * BITS_PER_LONG + __builtin_ffsl(~addr[i]) - 1, size);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; }</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; }</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;}</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> bitmap_get_bit(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *map,</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> bit)</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordflow">return</span> map[bit / BITS_PER_LONG] &gt;&gt; (bit % BITS_PER_LONG) &amp; 1;</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> find_first_bit(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *addr,</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size)</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;{</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i * BITS_PER_LONG &lt; size; i++) {</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordflow">if</span> (addr[i]) {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="keywordflow">return</span> MIN(i * BITS_PER_LONG + __builtin_ffsl(addr[i]) - 1, size);</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; }</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; }</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;}</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> find_first_zero_bit(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *addr,</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size)</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;{</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> i = 0; i * BITS_PER_LONG &lt; size; i++) {</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">if</span> (addr[i] != ~0ul) {</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordflow">return</span> MIN(i * BITS_PER_LONG + __builtin_ffsl(~addr[i]) - 1, size);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; }</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; }</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordflow">return</span> size;</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;}</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Expand Down
8 changes: 4 additions & 4 deletions classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
<dd><a class="el" href="structcond.html">cond</a></dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a name="letter_D">D</a></dt>
<dd><a class="el" href="structdentry.html">dentry</a></dd><dd><a class="el" href="structdirent.html">dirent</a></dd><dd><a class="el" href="structdirstream.html">dirstream</a></dd></dl>
<dd><a class="el" href="structdentry.html">dentry</a></dd><dd><a class="el" href="structdirent.html">dirent</a></dd><dd><a class="el" href="structdirstream.html">dirstream</a></dd><dd><a class="el" href="structdiv__t.html">div_t</a></dd></dl>
<dl class="classindex odd">
<dt class="alphachar"><a name="letter_F">F</a></dt>
<dd><a class="el" href="structfdtable.html">fdtable</a></dd><dd><a class="el" href="unionFILE.html">FILE</a></dd><dd><a class="el" href="structfile.html">file</a></dd><dd><a class="el" href="structfile__operations.html">file_operations</a></dd></dl>
<dd><a class="el" href="structfdtable.html">fdtable</a></dd><dd><a class="el" href="structfile.html">file</a></dd><dd><a class="el" href="unionFILE.html">FILE</a></dd><dd><a class="el" href="structfile__operations.html">file_operations</a></dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a name="letter_I">I</a></dt>
<dd><a class="el" href="structinode.html">inode</a></dd><dd><a class="el" href="structitimerspec.html">itimerspec</a></dd></dl>
Expand All @@ -89,7 +89,7 @@
<dd><a class="el" href="structkfifo.html">kfifo</a></dd><dd><a class="el" href="structkfifo__hdr.html">kfifo_hdr</a></dd><dd><a class="el" href="structkmalloc__header.html">kmalloc_header</a></dd><dd><a class="el" href="structkmalloc__slab__info.html">kmalloc_slab_info</a></dd><dd><a class="el" href="structkmem__cache.html">kmem_cache</a></dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a name="letter_L">L</a></dt>
<dd><a class="el" href="structlist__head.html">list_head</a></dd></dl>
<dd><a class="el" href="structldiv__t.html">ldiv_t</a></dd><dd><a class="el" href="structlist__head.html">list_head</a></dd><dd><a class="el" href="structlldiv__t.html">lldiv_t</a></dd></dl>
<dl class="classindex odd">
<dt class="alphachar"><a name="letter_M">M</a></dt>
<dd><a class="el" href="structmalloc__info.html">malloc_info</a></dd><dd><a class="el" href="structmount.html">mount</a></dd><dd><a class="el" href="structmpool.html">mpool</a></dd><dd><a class="el" href="structmq__attr.html">mq_attr</a></dd><dd><a class="el" href="structmq__desc.html">mq_desc</a></dd><dd><a class="el" href="structmqueue.html">mqueue</a></dd><dd><a class="el" href="structmutex.html">mutex</a></dd><dd><a class="el" href="structmutex__attr.html">mutex_attr</a></dd></dl>
Expand All @@ -101,7 +101,7 @@
<dd><a class="el" href="structreg__file.html">reg_file</a></dd></dl>
<dl class="classindex even">
<dt class="alphachar"><a name="letter_S">S</a></dt>
<dd><a class="el" href="structsched__param.html">sched_param</a></dd><dd><a class="el" href="unionsem__t.html">sem_t</a></dd><dd><a class="el" href="structsemaphore.html">semaphore</a></dd><dd><a class="el" href="structsigaction.html">sigaction</a></dd><dd><a class="el" href="structsigevent.html">sigevent</a></dd><dd><a class="el" href="structsiginfo__t.html">siginfo_t</a></dd><dd><a class="el" href="unionsigval.html">sigval</a></dd><dd><a class="el" href="structslab.html">slab</a></dd><dd><a class="el" href="structstack.html">stack</a></dd><dd><a class="el" href="structstack__fpu.html">stack_fpu</a></dd><dd><a class="el" href="structstat.html">stat</a></dd><dd><a class="el" href="structsuper__block.html">super_block</a></dd><dd><a class="el" href="structsyscall__info__t.html">syscall_info_t</a></dd></dl>
<dd><a class="el" href="structsched__param.html">sched_param</a></dd><dd><a class="el" href="unionsem__t.html">sem_t</a></dd><dd><a class="el" href="structsemaphore.html">semaphore</a></dd><dd><a class="el" href="structsigaction.html">sigaction</a></dd><dd><a class="el" href="structsigevent.html">sigevent</a></dd><dd><a class="el" href="structsiginfo__t.html">siginfo_t</a></dd><dd><a class="el" href="unionsigval.html">sigval</a></dd><dd><a class="el" href="structslab.html">slab</a></dd><dd><a class="el" href="structstack.html">stack</a></dd><dd><a class="el" href="structstack__fpu.html">stack_fpu</a></dd><dd><a class="el" href="structstaged__handler__info.html">staged_handler_info</a></dd><dd><a class="el" href="structstat.html">stat</a></dd><dd><a class="el" href="structsuper__block.html">super_block</a></dd><dd><a class="el" href="structsyscall__info.html">syscall_info</a></dd></dl>
<dl class="classindex odd">
<dt class="alphachar"><a name="letter_T">T</a></dt>
<dd><a class="el" href="structtask__hook.html">task_hook</a></dd><dd><a class="el" href="structtask__struct.html">task_struct</a></dd><dd><a class="el" href="structtasklet__struct.html">tasklet_struct</a></dd><dd><a class="el" href="structthread__attr.html">thread_attr</a></dd><dd><a class="el" href="structthread__info.html">thread_info</a></dd><dd><a class="el" href="structthread__once.html">thread_once</a></dd><dd><a class="el" href="structthread__stat.html">thread_stat</a></dd><dd><a class="el" href="structtimer.html">timer</a></dd><dd><a class="el" href="structtimespec.html">timespec</a></dd></dl>
Expand Down
Loading

0 comments on commit 6a868e5

Please sign in to comment.