deploy: b8b346b43dfa93762fc68623ecda5284007a48e2

This commit is contained in:
wyfcyx 2024-06-30 12:34:22 +00:00
parent aa11e4d92d
commit d0b11f2ee9
24 changed files with 51 additions and 51 deletions

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

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

View File

@ -8,7 +8,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>
) -&gt; Self</h4></section><section id="method.from_another" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#270-277">source</a><h4 class="code-header">pub fn <a href="#method.from_another" class="fn">from_another</a>(another: &amp;<a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a>) -&gt; Self</h4></section><section id="method.map_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#278-292">source</a><h4 class="code-header">pub fn <a href="#method.map_one" class="fn">map_one</a>(&amp;mut self, page_table: &amp;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#293-298">source</a><h4 class="code-header">pub fn <a href="#method.unmap_one" class="fn">unmap_one</a>(&amp;mut self, page_table: &amp;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#299-303">source</a><h4 class="code-header">pub fn <a href="#method.map" class="fn">map</a>(&amp;mut self, page_table: &amp;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#304-308">source</a><h4 class="code-header">pub fn <a href="#method.unmap" class="fn">unmap</a>(&amp;mut self, page_table: &amp;mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</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#311-330">source</a><h4 class="code-header">pub fn <a href="#method.copy_data" class="fn">copy_data</a>(&amp;mut self, page_table: &amp;mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, data: &amp;[<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
) -&gt; Self</h4></section><section id="method.from_another" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#270-277">source</a><h4 class="code-header">pub fn <a href="#method.from_another" class="fn">from_another</a>(another: &amp;<a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a>) -&gt; Self</h4></section><section id="method.map_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#278-292">source</a><h4 class="code-header">pub fn <a href="#method.map_one" class="fn">map_one</a>(&amp;mut self, page_table: &amp;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#293-298">source</a><h4 class="code-header">pub fn <a href="#method.unmap_one" class="fn">unmap_one</a>(&amp;mut self, page_table: &amp;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#299-303">source</a><h4 class="code-header">pub fn <a href="#method.map" class="fn">map</a>(&amp;mut self, page_table: &amp;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#304-308">source</a><h4 class="code-header">pub fn <a href="#method.unmap" class="fn">unmap</a>(&amp;mut self, page_table: &amp;mut <a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</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#311-330">source</a><h4 class="code-header">pub fn <a href="#method.copy_data" class="fn">copy_data</a>(&amp;mut self, page_table: &amp;<a class="struct" href="../page_table/struct.PageTable.html" title="struct os::mm::page_table::PageTable">PageTable</a>, data: &amp;[<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&lt;T&gt; <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>(&amp;self) -&gt; <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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; 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

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

File diff suppressed because one or more lines are too long

View File

@ -678,7 +678,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">&amp;mut </span><span class="self">self</span>, page_table: <span class="kw-2">&amp;mut </span>PageTable, data: <span class="kw-2">&amp;</span>[u8]) {
</span><span class="kw">pub fn </span>copy_data(<span class="kw-2">&amp;mut </span><span class="self">self</span>, page_table: <span class="kw-2">&amp;</span>PageTable, data: <span class="kw-2">&amp;</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();

View File

@ -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/drivers/block/struct.BLOCK_DEVICE.html\" title=\"struct os::drivers::block::BLOCK_DEVICE\">BLOCK_DEVICE</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/drivers/block/virtio_blk/struct.QUEUE_FRAMES.html\" title=\"struct os::drivers::block::virtio_blk::QUEUE_FRAMES\">QUEUE_FRAMES</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/fs/inode/struct.ROOT_INODE.html\" title=\"struct os::fs::inode::ROOT_INODE\">ROOT_INODE</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/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/id/struct.KSTACK_ALLOCATOR.html\" title=\"struct os::task::id::KSTACK_ALLOCATOR\">KSTACK_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/task/id/struct.PID_ALLOCATOR.html\" title=\"struct os::task::id::PID_ALLOCATOR\">PID_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/task/manager/struct.PID2PCB.html\" title=\"struct os::task::manager::PID2PCB\">PID2PCB</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/manager/struct.TASK_MANAGER.html\" title=\"struct os::task::manager::TASK_MANAGER\">TASK_MANAGER</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/processor/struct.PROCESSOR.html\" title=\"struct os::task::processor::PROCESSOR\">PROCESSOR</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.INITPROC.html\" title=\"struct os::task::INITPROC\">INITPROC</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/timer/struct.TIMERS.html\" title=\"struct os::timer::TIMERS\">TIMERS</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/drivers/block/struct.BLOCK_DEVICE.html\" title=\"struct os::drivers::block::BLOCK_DEVICE\">BLOCK_DEVICE</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/drivers/block/virtio_blk/struct.QUEUE_FRAMES.html\" title=\"struct os::drivers::block::virtio_blk::QUEUE_FRAMES\">QUEUE_FRAMES</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/fs/inode/struct.ROOT_INODE.html\" title=\"struct os::fs::inode::ROOT_INODE\">ROOT_INODE</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/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/id/struct.KSTACK_ALLOCATOR.html\" title=\"struct os::task::id::KSTACK_ALLOCATOR\">KSTACK_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/task/id/struct.PID_ALLOCATOR.html\" title=\"struct os::task::id::PID_ALLOCATOR\">PID_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/task/manager/struct.PID2PCB.html\" title=\"struct os::task::manager::PID2PCB\">PID2PCB</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/manager/struct.TASK_MANAGER.html\" title=\"struct os::task::manager::TASK_MANAGER\">TASK_MANAGER</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/processor/struct.PROCESSOR.html\" title=\"struct os::task::processor::PROCESSOR\">PROCESSOR</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.INITPROC.html\" title=\"struct os::task::INITPROC\">INITPROC</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/timer/struct.TIMERS.html\" title=\"struct os::timer::TIMERS\">TIMERS</a>"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()