Struct Vm

Source
pub struct Vm {
    boot_area: u64,
    boot_addr: u64,
    boot_tables: u64,
    initial_memory_size: u64,
    end_page: u64,
    stats: [VmStats; 2],
    pagers: [Weak<Proc>; 2],
    pages_deficit: [AtomicUsize; 2],
}
Expand description

Implementation of Virtual Memory system.

Fields§

§boot_area: u64§boot_addr: u64§boot_tables: u64§initial_memory_size: u64§end_page: u64§stats: [VmStats; 2]§pagers: [Weak<Proc>; 2]§pages_deficit: [AtomicUsize; 2]

Implementations§

Source§

impl Vm

Source

pub fn new() -> Result<Arc<Self>, VmError>

See vm_page_startup on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x029200
Source

pub fn boot_area(&self) -> u64

Source

pub fn initial_memory_size(&self) -> u64

Source

pub fn alloc_page( &self, obj: Option<VmObject>, flags: VmAlloc, ) -> Option<VmPage>

See vm_page_alloc on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x02B030
Source

fn load_memory_map(&mut self) -> Result<(), VmError>

See getmemsize on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x25CF00
Source

fn spawn_pagers(&mut self)

See kick_pagedaemons on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x3E0E40
Source

fn wake_pager(&self, _: usize)

See pagedaemon_wakeup on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x3E0690
Source

fn adjust_boot_area(&mut self, original: u64) -> u64

See mp_bootaddress on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x1B9D20
Source

fn load_pmap(&mut self)

See pmap_bootstrap on the Orbis for a reference.

§Reference offsets
VersionOffset
PS4 11.000x1127C0

Auto Trait Implementations§

§

impl !Freeze for Vm

§

impl !RefUnwindSafe for Vm

§

impl Send for Vm

§

impl Sync for Vm

§

impl Unpin for Vm

§

impl !UnwindSafe for Vm

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.