pub struct VirtualMemoryMap {
pub pmarea: MemoryArea,
pub vmarea: MemoryArea,
pub permissions: usize,
pub is_shared: bool,
}
Expand description
Represents a mapping between physical and virtual memory areas.
This structure defines the relationship between a physical memory area and its corresponding virtual memory area in the kernel’s memory management system.
§Fields
pmarea
- The physical memory area that is being mappedvmarea
- The virtual memory area where the physical memory is mapped to
Fields§
§pmarea: MemoryArea
§vmarea: MemoryArea
§permissions: usize
Implementations§
Source§impl VirtualMemoryMap
impl VirtualMemoryMap
Sourcepub fn new(
pmarea: MemoryArea,
vmarea: MemoryArea,
permissions: usize,
is_shared: bool,
) -> Self
pub fn new( pmarea: MemoryArea, vmarea: MemoryArea, permissions: usize, is_shared: bool, ) -> Self
Creates a new virtual memory map with the given physical and virtual memory areas.
§Arguments
pmarea
- The physical memory area to mapvmarea
- The virtual memory area to map topermissions
- The permissions to set for the virtual memory areais_shared
- Whether this memory map should be shared between tasks
§Returns
A new virtual memory map with the given physical and virtual memory areas.
Trait Implementations§
Source§impl Clone for VirtualMemoryMap
impl Clone for VirtualMemoryMap
Source§fn clone(&self) -> VirtualMemoryMap
fn clone(&self) -> VirtualMemoryMap
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VirtualMemoryMap
impl Debug for VirtualMemoryMap
Source§impl PartialEq for VirtualMemoryMap
impl PartialEq for VirtualMemoryMap
impl Copy for VirtualMemoryMap
impl StructuralPartialEq for VirtualMemoryMap
Auto Trait Implementations§
impl Freeze for VirtualMemoryMap
impl RefUnwindSafe for VirtualMemoryMap
impl Send for VirtualMemoryMap
impl Sync for VirtualMemoryMap
impl Unpin for VirtualMemoryMap
impl UnwindSafe for VirtualMemoryMap
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)