Skip to content

Commit

Permalink
deploy: 5b452ae
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Jun 30, 2024
1 parent 6180890 commit aa11e4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ch9/os/mm/memory_set/struct.MapArea.html
Original file line number Diff line number Diff line change
Expand Up @@ -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#273-280">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#281-300">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#301-306">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#307-311">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#312-316">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#319-338">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#273-280">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#281-300">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#301-306">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#307-311">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#312-316">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#319-338">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-Az-for-T" class="impl"><a class="src rightside" href="https://docs.rs/az/~1.2/src/az/lib.rs.html#599">source</a><a href="#impl-Az-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/az/~1.2/az/trait.Az.html" title="trait az::Az">Az</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.az" class="method trait-impl"><a class="src rightside" href="https://docs.rs/az/~1.2/src/az/lib.rs.html#602-604">source</a><a href="#method.az" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/az/~1.2/az/trait.Az.html#tymethod.az" class="fn">az</a>&lt;Dst&gt;(self) -&gt; Dst<div class="where">where
Expand Down
2 changes: 1 addition & 1 deletion ch9/src/os/mm/memory_set.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,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();
Expand Down

0 comments on commit aa11e4d

Please sign in to comment.