Skip to main content

SchedulerAddressSpaceOwner

Trait SchedulerAddressSpaceOwner 

Source
pub trait SchedulerAddressSpaceOwner: Send + Sync {
    // Required methods
    fn release_after_root_switch(
        self: Arc<Self>,
        proof: AddressSpaceSwitchProof,
    );
    fn cancel_before_install(self: Arc<Self>, cpu: usize);
    fn abandon(self: Arc<Self>, cpu: usize);
}
Expand description

Preallocated MM accounting retained by one CPU activation.

These callbacks run with IRQs disabled. They must not allocate, sleep, or destroy the last lifetime anchor for the page tables or their backing store.

Required Methods§

Source

fn release_after_root_switch(self: Arc<Self>, proof: AddressSpaceSwitchProof)

Releases accounting after the runtime completed a hardware root switch.

Source

fn cancel_before_install(self: Arc<Self>, cpu: usize)

Cancels a reservation which the runtime never installed in hardware.

Source

fn abandon(self: Arc<Self>, cpu: usize)

Retains an installed root for which no retirement proof was obtained.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§