Newer
Older
UbixOS / doc / html / dc / d03 / tty_8c.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: kernel/tty.c 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>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('dc/d03/tty_8c.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">tty.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../dd/d71/tty_8h_source.html">ubixos/tty.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../df/d63/spinlock_8h_source.html">ubixos/spinlock.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d4/d03/kmalloc_8h_source.html">lib/kmalloc.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../dc/dac/io_8h_source.html">sys/io.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d66/string_8h_source.html">string.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for tty.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d2f/tty_8c__incl.png" border="0" usemap="#kernel_2tty_8c" alt=""/></div>
<map name="kernel_2tty_8c" id="kernel_2tty_8c">
<area shape="rect" title=" " alt="" coords="277,5,363,32"/>
<area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="5,155,96,181"/>
<area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="89,80,202,107"/>
<area shape="rect" href="../../df/d63/spinlock_8h.html" title=" " alt="" coords="120,155,243,181"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="277,80,363,107"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html" title=" " alt="" coords="411,155,506,181"/>
<area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="438,80,506,107"/>
<area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="530,80,595,107"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="324,229,415,256"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="515,453,613,480"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="453,304,547,331"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="391,379,481,405"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="505,379,623,405"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="647,379,753,405"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="777,379,877,405"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="317,155,387,181"/>
<area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="581,155,653,181"/>
</map>
</div>
</div>
<p><a href="../../dc/d03/tty_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a52a11053c56546a0dcb568942ada9c72"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d03/tty_8c.html#a52a11053c56546a0dcb568942ada9c72">tty_change</a> (<a class="el" href="../../dd/d1e/objgfx30_8h.html#a81f3b46fa4ddd984830104840a08da82">uInt16</a> tty)</td></tr>
<tr class="separator:a52a11053c56546a0dcb568942ada9c72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a360dbff4aa208682a9943640a8696d66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dd/d71/tty_8h.html#ab4a376d082a021be5b9520e6c4987065">tty_term</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d03/tty_8c.html#a360dbff4aa208682a9943640a8696d66">tty_find</a> (<a class="el" href="../../dd/d1e/objgfx30_8h.html#a81f3b46fa4ddd984830104840a08da82">uInt16</a> tty)</td></tr>
<tr class="separator:a360dbff4aa208682a9943640a8696d66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab365abb615be7027fa0bdb2c09569cb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d03/tty_8c.html#aab365abb615be7027fa0bdb2c09569cb">tty_init</a> ()</td></tr>
<tr class="separator:aab365abb615be7027fa0bdb2c09569cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8811ced5425e47e4c5b0c8f086700ca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d03/tty_8c.html#ab8811ced5425e47e4c5b0c8f086700ca">tty_print</a> (char *string, <a class="el" href="../../dd/d71/tty_8h.html#ab4a376d082a021be5b9520e6c4987065">tty_term</a> *term)</td></tr>
<tr class="separator:ab8811ced5425e47e4c5b0c8f086700ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:aafbb5679104334c34d7691b2de7d7a86"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dd/d71/tty_8h.html#ab4a376d082a021be5b9520e6c4987065">tty_term</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d03/tty_8c.html#aafbb5679104334c34d7691b2de7d7a86">tty_foreground</a> = 0x0</td></tr>
<tr class="separator:aafbb5679104334c34d7691b2de7d7a86"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a52a11053c56546a0dcb568942ada9c72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52a11053c56546a0dcb568942ada9c72">&#9670;&nbsp;</a></span>tty_change()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tty_change </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#a81f3b46fa4ddd984830104840a08da82">uInt16</a>&#160;</td>
          <td class="paramname"><em>tty</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/d03/tty_8c_source.html#l00084">84</a> of file <a class="el" href="../../dc/d03/tty_8c_source.html">tty.c</a>.</p>

<p class="reference">References <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../da/d66/string_8h.html#ae33b18edb618c656b9b795b9fce2316c">memcpy()</a>, <a class="el" href="../../dd/d71/tty_8h_source.html#l00037">tty_termNode::tty_buffer</a>, <a class="el" href="../../dc/d03/tty_8c_source.html#l00038">tty_foreground</a>, and <a class="el" href="../../dd/d71/tty_8h_source.html#l00034">TTY_MAX_TERMS</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d03/tty_8c_a52a11053c56546a0dcb568942ada9c72_cgraph.png" border="0" usemap="#dc/d03/tty_8c_a52a11053c56546a0dcb568942ada9c72_cgraph" alt=""/></div>
<map name="dc/d03/tty_8c_a52a11053c56546a0dcb568942ada9c72_cgraph" id="dc/d03/tty_8c_a52a11053c56546a0dcb568942ada9c72_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,92,57"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="146,5,206,32"/>
<area shape="rect" href="../../da/d66/string_8h.html#ae33b18edb618c656b9b795b9fce2316c" title=" " alt="" coords="140,56,212,83"/>
</map>
</div>

</div>
</div>
<a id="a360dbff4aa208682a9943640a8696d66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a360dbff4aa208682a9943640a8696d66">&#9670;&nbsp;</a></span>tty_find()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dd/d71/tty_8h.html#ab4a376d082a021be5b9520e6c4987065">tty_term</a>* tty_find </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#a81f3b46fa4ddd984830104840a08da82">uInt16</a>&#160;</td>
          <td class="paramname"><em>tty</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/d03/tty_8c_source.html#l00167">167</a> of file <a class="el" href="../../dc/d03/tty_8c_source.html">tty.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../df/dc9/exec_8c_source.html#l00153">execFile()</a>, <a class="el" href="../../d7/d45/video_8c_source.html#l00058">kprint()</a>, and <a class="el" href="../../dc/d2e/armv6_2systemtask_8c_source.html#l00047">systemTask()</a>.</p>

</div>
</div>
<a id="aab365abb615be7027fa0bdb2c09569cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab365abb615be7027fa0bdb2c09569cb">&#9670;&nbsp;</a></span>tty_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tty_init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/d03/tty_8c_source.html#l00041">41</a> of file <a class="el" href="../../dc/d03/tty_8c_source.html">tty.c</a>.</p>

</div>
</div>
<a id="ab8811ced5425e47e4c5b0c8f086700ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8811ced5425e47e4c5b0c8f086700ca">&#9670;&nbsp;</a></span>tty_print()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tty_print </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dd/d71/tty_8h.html#ab4a376d082a021be5b9520e6c4987065">tty_term</a> *&#160;</td>
          <td class="paramname"><em>term</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/d03/tty_8c_source.html#l00115">115</a> of file <a class="el" href="../../dc/d03/tty_8c_source.html">tty.c</a>.</p>

<p class="reference">References <a class="el" href="../../dc/d88/armv6_2spinlock_8c_source.html#l00055">spinLock()</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d7/d45/video_8c_source.html#l00058">kprint()</a>, <a class="el" href="../../d6/d13/file_8c_source.html#l00049">sys_fwrite()</a>, and <a class="el" href="../../d6/d13/file_8c_source.html#l00071">sysFwrite()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d03/tty_8c_ab8811ced5425e47e4c5b0c8f086700ca_cgraph.png" border="0" usemap="#dc/d03/tty_8c_ab8811ced5425e47e4c5b0c8f086700ca_cgraph" alt=""/></div>
<map name="dc/d03/tty_8c_ab8811ced5425e47e4c5b0c8f086700ca_cgraph" id="dc/d03/tty_8c_ab8811ced5425e47e4c5b0c8f086700ca_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,75,57"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="123,31,197,57"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="246,5,337,32"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="245,56,337,83"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="aafbb5679104334c34d7691b2de7d7a86"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafbb5679104334c34d7691b2de7d7a86">&#9670;&nbsp;</a></span>tty_foreground</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dd/d71/tty_8h.html#ab4a376d082a021be5b9520e6c4987065">tty_term</a>* tty_foreground = 0x0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../dc/d03/tty_8c_source.html#l00038">38</a> of file <a class="el" href="../../dc/d03/tty_8c_source.html">tty.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../dd/dd3/atkbd_8c_source.html#l00343">getchar()</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../d7/d45/video_8c_source.html#l00058">kprint()</a>, <a class="el" href="../../d6/d13/file_8c_source.html#l00081">sys_fgetc()</a>, <a class="el" href="../../d7/d42/vfs__calls_8c_source.html#l00237">sys_pread()</a>, <a class="el" href="../../d7/d42/vfs__calls_8c_source.html#l00148">sys_read()</a>, and <a class="el" href="../../dc/d03/tty_8c_source.html#l00084">tty_change()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_dc43877d82dd332f9fb2071fcca799d6.html">kernel</a></li><li class="navelem"><a class="el" href="../../dc/d03/tty_8c.html">tty.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>