<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `task` mod in crate `os`."><metaname="keywords"content="rust, rustlang, rust-lang, task"><title>os::task - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"type="text/css"href="../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../ayu.css"disabled><linkrel="stylesheet"type="text/css"href="../../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../../storage.js"></script><scriptdefersrc="../../main.js"></script><noscript><linkrel="stylesheet"href="../../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../../favicon.svg"></head><bodyclass="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="sidebar-logo"href="../../os/index.html"><divclass="logo-container"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></div>
</a><h2class="location"><ahref="#">Module task</a></h2><divclass="sidebar-elems"><section><divclass="block"><ul><li><ahref="#reexports">Re-exports</a></li><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#constants">Constants</a></li><li><ahref="#functions">Functions</a></li></ul></div></section></div></nav><main><divclass="width-limiter"><divclass="sub-container"><aclass="sub-logo-container"href="../../os/index.html"><imgclass="rust-logo"src="../../rust-logo.svg"alt="logo"></a><navclass="sub"><formclass="search-form"><divclass="search-container"><span></span><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"title="help"tabindex="-1"><buttontype="button">?</button></div><divid="settings-menu"tabindex="-1">
<divclass="item-table"><divclass="item-row"><divclass="item-left import-item"id="reexport.TaskContext"><code>pub use context::<aclass="struct"href="context/struct.TaskContext.html"title="struct os::task::context::TaskContext">TaskContext</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.SignalAction"><code>pub use action::<aclass="struct"href="action/struct.SignalAction.html"title="struct os::task::action::SignalAction">SignalAction</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.SignalActions"><code>pub use action::<aclass="struct"href="action/struct.SignalActions.html"title="struct os::task::action::SignalActions">SignalActions</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.add_task"><code>pub use manager::<aclass="fn"href="manager/fn.add_task.html"title="fn os::task::manager::add_task">add_task</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.pid2task"><code>pub use manager::<aclass="fn"href="manager/fn.pid2task.html"title="fn os::task::manager::pid2task">pid2task</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.pid_alloc"><code>pub use pid::<aclass="fn"href="pid/fn.pid_alloc.html"title="fn os::task::pid::pid_alloc">pid_alloc</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.KernelStack"><code>pub use pid::<aclass="struct"href="pid/struct.KernelStack.html"title="struct os::task::pid::KernelStack">KernelStack</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.PidHandle"><code>pub use pid::<aclass="struct"href="pid/struct.PidHandle.html"title="struct os::task::pid::PidHandle">PidHandle</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.current_task"><code>pub use processor::<aclass="fn"href="processor/fn.current_task.html"title="fn os::task::processor::current_task">current_task</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.current_trap_cx"><code>pub use processor::<aclass="fn"href="processor/fn.current_trap_cx.html"title="fn os::task::processor::current_trap_cx">current_trap_cx</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.current_user_token"><code>pub use processor::<aclass="fn"href="processor/fn.current_user_token.html"title="fn os::task::processor::current_user_token">current_user_token</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.run_tasks"><code>pub use processor::<aclass="fn"href="processor/fn.run_tasks.html"title="fn os::task::processor::run_tasks">run_tasks</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.schedule"><code>pub use processor::<aclass="fn"href="processor/fn.schedule.html"title="fn os::task::processor::schedule">schedule</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.take_current_task"><code>pub use processor::<aclass="fn"href="processor/fn.take_current_task.html"title="fn os::task::processor::take_current_task">take_current_task</a>;</code></div><divclass="item-right docblock-short"></div></div><divclass="item-row"><divclass="item-left import-item"id="reexport.SignalFlags"><code>pub use signal::<aclass="
<divclass="item-table"><divclass="item-row"><divclass="item-left module-item"><aclass="constant"href="constant.IDLE_PID.html"title="os::task::IDLE_PID constant">IDLE_PID</a></div><divclass="item-right docblock-short"><p>pid of usertests app in make run TEST=1</p>