-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
Is it possible to allocate a MemoryRegion from a raw pointer or user-managed memory rather than Vec<T> ? Sometimes I would like to allocate memory using mmap to enable huge pages, but it seems like current APIs do not work well for this request.
It would be good if we add methods like this:
impl<'ctx> ProtectionDomain<'ctx> {
pub unsafe fn allocate_from_raw<T: Sized + Copy + Default>(&self, ptr: *mut u8, n: usize) -> io::Result<MemoryRegion<T>> {
todo!();
}
}Thanks for your time :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels