2020-07-25 23:50:03 +00:00
<!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.18" / >
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > MyOS Kernel: Thread Struct 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 >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / 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" > MyOS Kernel
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
< / script >
< 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('',true,false,'search.php','Search');
$(document).ready(function() { init_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('structThread.html',''); initResizable(); });
/* @license-end */
< / script >
< div id = "doc-content" >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#pub-attribs" > Data Fields< / a > < / div >
< div class = "headertitle" >
< div class = "title" > Thread Struct Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "tasking_8h_source.html" > tasking.h< / a > > < / code > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-attribs" > < / a >
Data Fields< / h2 > < / td > < / tr >
< tr class = "memitem:a5c7be841d425e4383daccdce34d7aa29" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a5c7be841d425e4383daccdce34d7aa29" > < / a >
void *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a5c7be841d425e4383daccdce34d7aa29" > kernel_esp< / a > < / td > < / tr >
< tr class = "memdesc:a5c7be841d425e4383daccdce34d7aa29" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The thread's kernel stack. < br / > < / td > < / tr >
< tr class = "separator:a5c7be841d425e4383daccdce34d7aa29" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad587532fcef04437ad95e1cfea76ba2f" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "ad587532fcef04437ad95e1cfea76ba2f" > < / a >
void *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#ad587532fcef04437ad95e1cfea76ba2f" > kernel_esp_top< / a > < / td > < / tr >
< tr class = "memdesc:ad587532fcef04437ad95e1cfea76ba2f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The top of the thread's kernel stack. < br / > < / td > < / tr >
< tr class = "separator:ad587532fcef04437ad95e1cfea76ba2f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3bf6171b97c28a4da05947a74c8ded8b" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a3bf6171b97c28a4da05947a74c8ded8b" > < / a >
void *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a3bf6171b97c28a4da05947a74c8ded8b" > cr3< / a > < / td > < / tr >
< tr class = "memdesc:a3bf6171b97c28a4da05947a74c8ded8b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The address space of this thread. (it is in here and not in the process to simplify the task switch asembly) < br / > < / td > < / tr >
< tr class = "separator:a3bf6171b97c28a4da05947a74c8ded8b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a85915c03a5847d0f7c08660c8181a74e" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a85915c03a5847d0f7c08660c8181a74e" > < / a >
pid_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a85915c03a5847d0f7c08660c8181a74e" > tid< / a > < / td > < / tr >
< tr class = "memdesc:a85915c03a5847d0f7c08660c8181a74e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The TID of this thread. < br / > < / td > < / tr >
< tr class = "separator:a85915c03a5847d0f7c08660c8181a74e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a05ff1695379212103807ae341e995344" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a05ff1695379212103807ae341e995344" > < / a >
< a class = "el" href = "tasking_8h.html#a4b1b32c1fc744438f665f0f1932dd207" > thread_state< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a05ff1695379212103807ae341e995344" > state< / a > < / td > < / tr >
< tr class = "memdesc:a05ff1695379212103807ae341e995344" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The state of this thread. (running,ready to run,blocked,etc.) < br / > < / td > < / tr >
< tr class = "separator:a05ff1695379212103807ae341e995344" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:acb2fe83a77f2e2eea943869b40e472b0" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "acb2fe83a77f2e2eea943869b40e472b0" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#acb2fe83a77f2e2eea943869b40e472b0" > errno< / a > < / td > < / tr >
< tr class = "memdesc:acb2fe83a77f2e2eea943869b40e472b0" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The errno value for this thread. < br / > < / td > < / tr >
< tr class = "separator:acb2fe83a77f2e2eea943869b40e472b0" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-07-28 15:34:51 +00:00
< tr class = "memitem:a2e36472c509fe52f73133906c1f26aac" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a2e36472c509fe52f73133906c1f26aac" > < / a >
struct < a class = "el" href = "structThread.html" > Thread< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a2e36472c509fe52f73133906c1f26aac" > next_thread_in_process< / a > < / td > < / tr >
< tr class = "memdesc:a2e36472c509fe52f73133906c1f26aac" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The next thread in the process. < br / > < / td > < / tr >
< tr class = "separator:a2e36472c509fe52f73133906c1f26aac" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adfbbeb19a2571fa9c650ea9755aa2da7" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "adfbbeb19a2571fa9c650ea9755aa2da7" > < / a >
struct < a class = "el" href = "structThread.html" > Thread< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#adfbbeb19a2571fa9c650ea9755aa2da7" > prev_thread_in_process< / a > < / td > < / tr >
< tr class = "memdesc:adfbbeb19a2571fa9c650ea9755aa2da7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The previous thread in the process. < br / > < / td > < / tr >
< tr class = "separator:adfbbeb19a2571fa9c650ea9755aa2da7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7bd6ad78697d0bd0e20334a6aca7babb" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a7bd6ad78697d0bd0e20334a6aca7babb" > < / a >
struct < a class = "el" href = "structThread.html" > Thread< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a7bd6ad78697d0bd0e20334a6aca7babb" > next_ready_to_run< / a > < / td > < / tr >
< tr class = "memdesc:a7bd6ad78697d0bd0e20334a6aca7babb" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > If the thread is in the ready to run list, this is the next ready to run thread. (potentially in a different process) < br / > < / td > < / tr >
< tr class = "separator:a7bd6ad78697d0bd0e20334a6aca7babb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a446b54c14f79942f79e2e78cf10b2f22" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a446b54c14f79942f79e2e78cf10b2f22" > < / a >
struct < a class = "el" href = "structThread.html" > Thread< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a446b54c14f79942f79e2e78cf10b2f22" > prev_ready_to_run< / a > < / td > < / tr >
< tr class = "memdesc:a446b54c14f79942f79e2e78cf10b2f22" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > If the thread is in the ready to run list, this is the previous ready to run thread. (potentially in a different process) < br / > < / td > < / tr >
< tr class = "separator:a446b54c14f79942f79e2e78cf10b2f22" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2020-07-25 23:50:03 +00:00
< tr class = "memitem:a13b09b855703f94e0431cb650ce50161" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a13b09b855703f94e0431cb650ce50161" > < / a >
< a class = "el" href = "structProcess.html" > Process< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structThread.html#a13b09b855703f94e0431cb650ce50161" > process< / a > < / td > < / tr >
< tr class = "memdesc:a13b09b855703f94e0431cb650ce50161" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The thread's process. < br / > < / td > < / tr >
< tr class = "separator:a13b09b855703f94e0431cb650ce50161" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > Represents a thread of a process < / p >
< / div > < hr / > The documentation for this struct was generated from the following file:< ul >
< li > kernel/< a class = "el" href = "tasking_8h_source.html" > tasking.h< / a > < / li >
< / ul >
< / 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 = "structThread.html" > Thread< / 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.18 < / li >
< / ul >
< / div >
< / body >
< / html >