pub enum Alloc {
Anon(usize),
PciBar {
bus: u8,
dev: u8,
func: u8,
bar: u8,
},
GpuRenderNode,
PmemDevice(usize),
Pstore,
PciBridgeWindow {
bus: u8,
dev: u8,
func: u8,
},
PciBridgePrefetchWindow {
bus: u8,
dev: u8,
func: u8,
},
FileBacked(u64),
}
Expand description
Used to tag SystemAllocator allocations.
Variants§
Anon(usize)
An anonymous resource allocation.
Should only be instantiated through SystemAllocator::get_anon_alloc()
.
Avoid using these. Instead, use / create a more descriptive Alloc variant.
PciBar
A PCI BAR region with associated bus, device, function and bar numbers.
GpuRenderNode
GPU render node region.
PmemDevice(usize)
Pmem device region with associated device index.
Pstore
pstore region.
PciBridgeWindow
A PCI bridge window with associated bus, dev, function.
PciBridgePrefetchWindow
A PCI bridge prefetch window with associated bus, dev, function.
FileBacked(u64)
File-backed memory mapping.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Alloc
impl<'de> Deserialize<'de> for Alloc
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Alloc
impl PartialEq for Alloc
impl Copy for Alloc
impl Eq for Alloc
impl StructuralPartialEq for Alloc
Auto Trait Implementations§
impl RefUnwindSafe for Alloc
impl Send for Alloc
impl Sync for Alloc
impl Unpin for Alloc
impl UnwindSafe for Alloc
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