mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
deploy: 7e05087b5834145d14f14d3c512cbfe2afe68412
This commit is contained in:
parent
13b0c7931a
commit
fb2bd7e3bd
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
@ -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.from_another" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#301-308">source</a><h4 class="code-header">pub fn <a href="#method.from_another" class="fn">from_another</a>(another: &<a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a>) -> Self</h4></section><section id="method.map_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#309-323">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#324-329">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#330-334">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#335-339">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><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#342-361">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.from_another" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#301-308">source</a><h4 class="code-header">pub fn <a href="#method.from_another" class="fn">from_another</a>(another: &<a class="struct" href="struct.MapArea.html" title="struct os::mm::memory_set::MapArea">MapArea</a>) -> Self</h4></section><section id="method.map_one" class="method"><a class="src rightside" href="../../../src/os/mm/memory_set.rs.html#309-323">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#324-329">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#330-334">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#335-339">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><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#342-361">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
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
@ -747,7 +747,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/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/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/pid/struct.PID_ALLOCATOR.html\" title=\"struct os::task::pid::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/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>"]]
|
||||
"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/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/pid/struct.PID_ALLOCATOR.html\" title=\"struct os::task::pid::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/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>"]]
|
||||
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
|
Loading…
Reference in New Issue
Block a user