Struct sgx_rsrvmm::alloc::RsrvMemAlloc
source · pub struct RsrvMemAlloc;
Implementations§
source§impl RsrvMemAlloc
impl RsrvMemAlloc
sourcepub unsafe fn alloc(
&self,
size: NonZeroUsize
) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
pub unsafe fn alloc( &self, size: NonZeroUsize ) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
Allocate a range of EPC memory from the reserved memory area
sourcepub unsafe fn alloc_with_addr(
&self,
addr: NonNull<u8>,
size: NonZeroUsize
) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
pub unsafe fn alloc_with_addr( &self, addr: NonNull<u8>, size: NonZeroUsize ) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
Allocate a range of EPC memory with a fixed address from the reserved memory area
sourcepub unsafe fn alloc_zeroed(
&self,
size: NonZeroUsize
) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
pub unsafe fn alloc_zeroed( &self, size: NonZeroUsize ) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
Allocate a range of EPC memory from the reserved memory area
sourcepub unsafe fn alloc_zeroed_with_addr(
&self,
addr: NonNull<u8>,
size: NonZeroUsize
) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
pub unsafe fn alloc_zeroed_with_addr( &self, addr: NonNull<u8>, size: NonZeroUsize ) -> Result<NonNull<[u8]>, RsrvMemAllocErr>
Allocate a range of EPC memory with a fixed address from the reserved memory area
sourcepub unsafe fn dealloc(
&self,
addr: NonNull<u8>,
size: NonZeroUsize
) -> Result<(), RsrvMemAllocErr>
pub unsafe fn dealloc( &self, addr: NonNull<u8>, size: NonZeroUsize ) -> Result<(), RsrvMemAllocErr>
Free a range of EPC memory from the reserved memory area
sourcepub unsafe fn protect(
&self,
addr: NonNull<u8>,
size: NonZeroUsize,
perm: ProtectPerm
) -> Result<(), RsrvMemAllocErr>
pub unsafe fn protect( &self, addr: NonNull<u8>, size: NonZeroUsize, perm: ProtectPerm ) -> Result<(), RsrvMemAllocErr>
Modify the access permissions of the pages in the reserved memory area.
Auto Trait Implementations§
impl RefUnwindSafe for RsrvMemAlloc
impl Send for RsrvMemAlloc
impl Sync for RsrvMemAlloc
impl Unpin for RsrvMemAlloc
impl UnwindSafe for RsrvMemAlloc
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more