<!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: Misc</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&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  <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&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&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('d1/d84/group__sys__misc.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">Misc<div class="ingroups"><a class="el" href="../../db/d82/group__sys__layer.html">Porting (system abstraction layer)</a> » <a class="el" href="../../de/d7c/group__sys__os.html">OS abstraction layer</a></div></div> </div> </div><!--header--> <div class="contents"> <div class="dynheader"> Collaboration diagram for Misc:</div> <div class="dyncontent"> <div class="center"><img src="../../d1/d84/group__sys__misc.png" border="0" usemap="#d1_2d84_2group____sys____misc" alt=""/></div> <map name="d1_2d84_2group____sys____misc" id="d1_2d84_2group____sys____misc"> <area shape="rect" href="../../de/d7c/group__sys__os.html" title=" " alt="" coords="5,5,147,31"/> <area shape="rect" title=" " alt="" coords="195,5,245,31"/> </map> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:ga6b8786f43e779953e8b74e983c88682e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d84/group__sys__misc.html#ga6b8786f43e779953e8b74e983c88682e">sys_msleep</a> (<a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a> ms)</td></tr> <tr class="separator:ga6b8786f43e779953e8b74e983c88682e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ga0d596afdd8dbcfad320172d39b0f607a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../df/dc7/sys__arch_8h.html#a2930394713e07b1b46b0b5396708d911">sys_thread_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d84/group__sys__misc.html#ga0d596afdd8dbcfad320172d39b0f607a">sys_thread_new</a> (<a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char *<a class="el" href="../../d1/de8/pci_8c.html#a8f8f80d37794cde9472343e4487ba3eb">name</a>, <a class="el" href="../../d9/d87/sys_8h.html#ae30a77bf6bd69bfcc5f235eaad54f2b9">lwip_thread_fn</a> <a class="el" href="../../d3/dc5/structthread.html">thread</a>, void *arg, int stacksize, int prio)</td></tr> <tr class="separator:ga0d596afdd8dbcfad320172d39b0f607a"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <h2 class="groupheader">Function Documentation</h2> <a id="ga6b8786f43e779953e8b74e983c88682e"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga6b8786f43e779953e8b74e983c88682e">◆ </a></span>sys_msleep()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void sys_msleep </td> <td>(</td> <td class="paramtype"><a class="el" href="../../de/d8c/group__compiler__abstraction.html#ga4c14294869aceba3ef9d4c0c302d0f33">u32_t</a> </td> <td class="paramname"><em>ms</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Sleep for specified number of ms</p> <p>Sleep for some ms. Timeouts are NOT processed while sleeping.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">ms</td><td>number of milliseconds to sleep </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="../../d8/d91/sys_8c_source.html#l00093">93</a> of file <a class="el" href="../../d8/d91/sys_8c_source.html">sys.c</a>.</p> <p class="reference">References <a class="el" href="../../d6/d40/err_8h_source.html#l00063">ERR_OK</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00104">sys_arch_sem_wait()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00075">sys_sem_free()</a>, and <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00052">sys_sem_new()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d1/d84/group__sys__misc_ga6b8786f43e779953e8b74e983c88682e_cgraph.png" border="0" usemap="#d1/d84/group__sys__misc_ga6b8786f43e779953e8b74e983c88682e_cgraph" alt=""/></div> <map name="d1/d84/group__sys__misc_ga6b8786f43e779953e8b74e983c88682e_cgraph" id="d1/d84/group__sys__misc_ga6b8786f43e779953e8b74e983c88682e_cgraph"> <area shape="rect" title=" " alt="" coords="5,208,97,235"/> <area shape="rect" href="../../da/d3a/group__sys__sem.html#ga28aa725e8a36dd0cfde89875af4f3ec9" title=" " alt="" coords="145,107,283,133"/> <area shape="rect" href="../../da/d3a/group__sys__sem.html#ga4d02e29e5dfa092559efc04dee985822" title=" " alt="" coords="163,309,265,336"/> <area shape="rect" href="../../da/d3a/group__sys__sem.html#gadb68acad14b34550b9891bc11bbf4e63" title=" " alt="" coords="161,208,267,235"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#aa13bf141cd3e9bf0921fbf61ffc637d8" title=" " alt="" coords="331,56,477,83"/> <area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="578,56,638,83"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="579,107,637,133"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="745,107,799,133"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="741,56,803,83"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="739,157,805,184"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="857,56,939,83"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="853,107,943,133"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="866,157,930,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="863,5,933,32"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="991,107,1065,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="1114,81,1205,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="1113,132,1205,159"/> <area shape="rect" href="../../d2/d28/sem_8h.html#adcce987e1dbe6b3740a4b8f1a49c680f" title=" " alt="" coords="355,360,453,387"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="747,360,797,387"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#ae914fae69538736dc5e494c15ce93a17" title=" " alt="" coords="529,411,687,437"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#a278f5d5b1e11b6668b75da6a285442e4" title=" " alt="" coords="525,309,691,336"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="575,208,641,235"/> <area shape="rect" href="../../d2/d28/sem_8h.html#a741be298cbcc3eab1747e8b9b239d5f0" title=" " alt="" coords="369,208,439,235"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#acbb7170a68758468ab5b02512a320112" title=" " alt="" coords="543,157,673,184"/> <area shape="rect" href="../../dd/d1b/ubthread_8h.html#ab6bfc2169b55532821582f24b68dc855" title=" " alt="" coords="539,259,677,285"/> </map> </div> </div> </div> <a id="ga0d596afdd8dbcfad320172d39b0f607a"></a> <h2 class="memtitle"><span class="permalink"><a href="#ga0d596afdd8dbcfad320172d39b0f607a">◆ </a></span>sys_thread_new()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="../../df/dc7/sys__arch_8h.html#a2930394713e07b1b46b0b5396708d911">sys_thread_t</a> sys_thread_new </td> <td>(</td> <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> char * </td> <td class="paramname"><em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../d9/d87/sys_8h.html#ae30a77bf6bd69bfcc5f235eaad54f2b9">lwip_thread_fn</a> </td> <td class="paramname"><em>thread</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>arg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>stacksize</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>prio</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>The only thread function: Creates a new thread ATTENTION: although this function returns a value, it MUST NOT FAIL (ports have to assert this!) </p><dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">name</td><td>human-readable name for the thread (used for debugging purposes) </td></tr> <tr><td class="paramname">thread</td><td>thread-function </td></tr> <tr><td class="paramname">arg</td><td>parameter passed to 'thread' </td></tr> <tr><td class="paramname">stacksize</td><td>stack size in bytes for the new thread (may be ignored by ports) </td></tr> <tr><td class="paramname">prio</td><td>priority of the new thread (may be ignored by ports) </td></tr> </table> </dd> </dl> <p class="definition">Definition at line <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00378">378</a> of file <a class="el" href="../../d9/d56/sys__arch_8c_source.html">sys_arch.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00241">kmalloc()</a>, <a class="el" href="../../db/d16/debug_8h_source.html#l00116">LWIP_ASSERT</a>, <a class="el" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23">memset()</a>, and <a class="el" href="../../dc/d88/armv6_2spinlock_8c_source.html#l00055">spinLock()</a>.</p> <p class="reference">Referenced by <a class="el" href="../../df/d98/bot_8c_source.html#l00083">bot_init()</a>, <a class="el" href="../../d6/d49/net_2init_8c_source.html#l00052">net_init()</a>, and <a class="el" href="../../dc/d7e/udpecho_8c_source.html#l00064">udpecho_init()</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="../../d1/d84/group__sys__misc_ga0d596afdd8dbcfad320172d39b0f607a_cgraph.png" border="0" usemap="#d1/d84/group__sys__misc_ga0d596afdd8dbcfad320172d39b0f607a_cgraph" alt=""/></div> <map name="d1/d84/group__sys__misc_ga0d596afdd8dbcfad320172d39b0f607a_cgraph" id="d1/d84/group__sys__misc_ga0d596afdd8dbcfad320172d39b0f607a_cgraph"> <area shape="rect" title=" " alt="" coords="5,56,121,83"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="171,5,237,32"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="287,31,361,57"/> <area shape="rect" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23" title=" " alt="" coords="169,107,239,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="410,5,501,32"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="409,56,501,83"/> </map> </div> </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="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>