mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
deploy: 162182fe1dad1ac2948d06a9eeff5c0400d2ff31
This commit is contained in:
parent
67f93db3d1
commit
91597533b4
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
||||
end_va: <a class="struct" href="../address/struct.VirtAddr.html" title="struct os::mm::address::VirtAddr">VirtAddr</a>,
|
||||
map_type: <a class="enum" href="enum.MapType.html" title="enum os::mm::memory_set::MapType">MapType</a>,
|
||||
map_perm: <a class="struct" href="struct.MapPermission.html" title="struct os::mm::memory_set::MapPermission">MapPermission</a>
|
||||
) -> Self</h4></section><section id="method.map_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#295-309">source</a><h4 class="code-header">pub fn <a href="#method.map_one" class="fn">map_one</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, vpn: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><section id="method.unmap_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#311-316">source</a><h4 class="code-header">pub fn <a href="#method.unmap_one" class="fn">unmap_one</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, vpn: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><section id="method.map" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#317-321">source</a><h4 class="code-header">pub fn <a href="#method.map" class="fn">map</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>)</h4></section><section id="method.unmap" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#323-327">source</a><h4 class="code-header">pub fn <a href="#method.unmap" class="fn">unmap</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>)</h4></section><section id="method.shrink_to" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#329-334">source</a><h4 class="code-header">pub fn <a href="#method.shrink_to" class="fn">shrink_to</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, new_end: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><section id="method.append_to" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#336-341">source</a><h4 class="code-header">pub fn <a href="#method.append_to" class="fn">append_to</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, new_end: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><details class="toggle method-toggle" open><summary><section id="method.copy_data" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#344-363">source</a><h4 class="code-header">pub fn <a href="#method.copy_data" class="fn">copy_data</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, data: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>])</h4></section></summary><div class="docblock"><p>data: start-aligned but maybe with shorter length
|
||||
) -> Self</h4></section><section id="method.map_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#295-309">source</a><h4 class="code-header">pub fn <a href="#method.map_one" class="fn">map_one</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, vpn: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><section id="method.unmap_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#311-316">source</a><h4 class="code-header">pub fn <a href="#method.unmap_one" class="fn">unmap_one</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, vpn: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><section id="method.map" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#317-321">source</a><h4 class="code-header">pub fn <a href="#method.map" class="fn">map</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>)</h4></section><section id="method.unmap" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#323-327">source</a><h4 class="code-header">pub fn <a href="#method.unmap" class="fn">unmap</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>)</h4></section><section id="method.shrink_to" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#329-334">source</a><h4 class="code-header">pub fn <a href="#method.shrink_to" class="fn">shrink_to</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, new_end: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><section id="method.append_to" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#336-341">source</a><h4 class="code-header">pub fn <a href="#method.append_to" class="fn">append_to</a>(&mut self, page_table: &mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, new_end: <a class="struct" href="../address/struct.VirtPageNum.html" title="struct os::mm::address::VirtPageNum">VirtPageNum</a>)</h4></section><details class="toggle method-toggle" open><summary><section id="method.copy_data" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#344-363">source</a><h4 class="code-header">pub fn <a href="#method.copy_data" class="fn">copy_data</a>(&mut self, page_table: &<a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, data: &[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>])</h4></section></summary><div class="docblock"><p>data: start-aligned but maybe with shorter length
|
||||
assume that all frames were cleared before</p>
|
||||
</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-MapArea" class="impl"><a href="#impl-Freeze-for-MapArea" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a></h3></section><section id="impl-RefUnwindSafe-for-MapArea" class="impl"><a href="#impl-RefUnwindSafe-for-MapArea" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a></h3></section><section id="impl-Send-for-MapArea" class="impl"><a href="#impl-Send-for-MapArea" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a></h3></section><section id="impl-Sync-for-MapArea" class="impl"><a href="#impl-Sync-for-MapArea" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a></h3></section><section id="impl-Unpin-for-MapArea" class="impl"><a href="#impl-Unpin-for-MapArea" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a></h3></section><section id="impl-UnwindSafe-for-MapArea" class="impl"><a href="#impl-UnwindSafe-for-MapArea" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -746,7 +746,7 @@
|
||||
}
|
||||
<span class="doccomment">/// data: start-aligned but maybe with shorter length
|
||||
/// assume that all frames were cleared before
|
||||
</span><span class="kw">pub fn </span>copy_data(<span class="kw-2">&mut </span><span class="self">self</span>, page_table: <span class="kw-2">&mut </span>PageTable, data: <span class="kw-2">&</span>[u8]) {
|
||||
</span><span class="kw">pub fn </span>copy_data(<span class="kw-2">&mut </span><span class="self">self</span>, page_table: <span class="kw-2">&</span>PageTable, data: <span class="kw-2">&</span>[u8]) {
|
||||
<span class="macro">assert_eq!</span>(<span class="self">self</span>.map_type, MapType::Framed);
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>start: usize = <span class="number">0</span>;
|
||||
<span class="kw">let </span><span class="kw-2">mut </span>current_vpn = <span class="self">self</span>.vpn_range.get_start();
|
||||
|
@ -1,3 +1,3 @@
|
||||
(function() {var implementors = {
|
||||
"os":[["impl <a class=\"trait\" href=\"https://docs.rs/lazy_static/1.4.0/lazy_static/trait.LazyStatic.html\" title=\"trait lazy_static::LazyStatic\">LazyStatic</a> for <a class=\"struct\" href=\"os/mm/frame_allocator/struct.FRAME_ALLOCATOR.html\" title=\"struct os::mm::frame_allocator::FRAME_ALLOCATOR\">FRAME_ALLOCATOR</a>"],["impl <a class=\"trait\" href=\"https://docs.rs/lazy_static/1.4.0/lazy_static/trait.LazyStatic.html\" title=\"trait lazy_static::LazyStatic\">LazyStatic</a> for <a class=\"struct\" href=\"os/mm/memory_set/struct.KERNEL_SPACE.html\" title=\"struct os::mm::memory_set::KERNEL_SPACE\">KERNEL_SPACE</a>"],["impl <a class=\"trait\" href=\"https://docs.rs/lazy_static/1.4.0/lazy_static/trait.LazyStatic.html\" title=\"trait lazy_static::LazyStatic\">LazyStatic</a> for <a class=\"struct\" href=\"os/task/struct.TASK_MANAGER.html\" title=\"struct os::task::TASK_MANAGER\">TASK_MANAGER</a>"]]
|
||||
"os":[["impl <a class=\"trait\" href=\"https://docs.rs/lazy_static/1.5.0/lazy_static/trait.LazyStatic.html\" title=\"trait lazy_static::LazyStatic\">LazyStatic</a> for <a class=\"struct\" href=\"os/mm/frame_allocator/struct.FRAME_ALLOCATOR.html\" title=\"struct os::mm::frame_allocator::FRAME_ALLOCATOR\">FRAME_ALLOCATOR</a>"],["impl <a class=\"trait\" href=\"https://docs.rs/lazy_static/1.5.0/lazy_static/trait.LazyStatic.html\" title=\"trait lazy_static::LazyStatic\">LazyStatic</a> for <a class=\"struct\" href=\"os/mm/memory_set/struct.KERNEL_SPACE.html\" title=\"struct os::mm::memory_set::KERNEL_SPACE\">KERNEL_SPACE</a>"],["impl <a class=\"trait\" href=\"https://docs.rs/lazy_static/1.5.0/lazy_static/trait.LazyStatic.html\" title=\"trait lazy_static::LazyStatic\">LazyStatic</a> for <a class=\"struct\" href=\"os/task/struct.TASK_MANAGER.html\" title=\"struct os::task::TASK_MANAGER\">TASK_MANAGER</a>"]]
|
||||
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
Loading…
Reference in New Issue
Block a user