pub struct PhysAllocator {
segs: Vec<PhysSeg>,
nfree: usize,
lookup_lists: [Arc<Mutex<[[[IndexSet<Arc<VmPage>, FxBuildHasher>; 13]; 3]; 2]>>; 2],
}Expand description
Provides methods to allocate physical memory.
Fields§
§segs: Vec<PhysSeg>§nfree: usize§lookup_lists: [Arc<Mutex<[[[IndexSet<Arc<VmPage>, FxBuildHasher>; 13]; 3]; 2]>>; 2]Implementations§
Source§impl PhysAllocator
impl PhysAllocator
Sourcepub fn segment_index(&self, pa: usize) -> Option<usize>
pub fn segment_index(&self, pa: usize) -> Option<usize>
Sourcepub fn alloc_page(
&self,
pages: &[Arc<VmPage>],
vm: usize,
pool: usize,
order: usize,
) -> Option<Arc<VmPage>>
pub fn alloc_page( &self, pages: &[Arc<VmPage>], vm: usize, pool: usize, order: usize, ) -> Option<Arc<VmPage>>
See vm_phys_alloc_pages on the Orbis for a reference.
§Reference offsets
| Version | Offset |
|---|---|
| PS4 11.00 | 0x160520 |
Auto Trait Implementations§
impl Freeze for PhysAllocator
impl !RefUnwindSafe for PhysAllocator
impl Send for PhysAllocator
impl Sync for PhysAllocator
impl Unpin for PhysAllocator
impl UnsafeUnpin for PhysAllocator
impl !UnwindSafe for PhysAllocator
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