pub struct Userspace(pub(super) Weak);
🔬This is a nightly-only experimental API. (
kernel_virtual_memory
)Tuple Fields§
§0: Weak
🔬This is a nightly-only experimental API. (
kernel_virtual_memory
)Trait Implementations§
Source§impl AddressSpaceTy for Userspace
impl AddressSpaceTy for Userspace
Source§type PageTable<'a> = Option<AddressSpace>
type PageTable<'a> = Option<AddressSpace>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn get_page_table(&self) -> Self::PageTable<'_>
fn get_page_table(&self) -> Self::PageTable<'_>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn translate_page(table: &mut Self::PageTable<'_>, page: Page) -> Option<Frame>
fn translate_page(table: &mut Self::PageTable<'_>, page: Page) -> Option<Frame>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn map_page(
table: &mut Self::PageTable<'_>,
page: Page,
frame: Frame,
reason: u16,
protection: Protection,
) -> Result<(), MapPageError>
fn map_page( table: &mut Self::PageTable<'_>, page: Page, frame: Frame, reason: u16, protection: Protection, ) -> Result<(), MapPageError>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn unmap_page(table: &mut Self::PageTable<'_>, page: Page) -> Result<(), ()>
fn unmap_page(table: &mut Self::PageTable<'_>, page: Page) -> Result<(), ()>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn allocate_contiguous(&self, len: usize) -> Result<Page, AllocError>
fn allocate_contiguous(&self, len: usize) -> Result<Page, AllocError>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn allocate_contiguous_at(
&self,
at: Page,
len: usize,
) -> Result<Page, AllocError>
fn allocate_contiguous_at( &self, at: Page, len: usize, ) -> Result<Page, AllocError>
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)Source§fn deallocate_contiguous(&self, base: Page, len: usize)
fn deallocate_contiguous(&self, base: Page, len: usize)
🔬This is a nightly-only experimental API. (
kernel_mmap_config
#24)impl Sealed for Userspace
Auto Trait Implementations§
impl Freeze for Userspace
impl !RefUnwindSafe for Userspace
impl !Send for Userspace
impl !Sync for Userspace
impl Unpin for Userspace
impl !UnwindSafe for Userspace
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