Struct acpi::PhysicalMapping[][src]

pub struct PhysicalMapping<H, T> where
    H: AcpiHandler
{ /* fields omitted */ }
Expand description

Describes a physical mapping created by AcpiHandler::map_physical_region and unmapped by AcpiHandler::unmap_physical_region. The region mapped must be at least size_of::<T>() bytes, but may be bigger.

Implementations

Construct a new PhysicalMapping. mapped_length may differ from region_length if padding is added for alignment.

Safety

This function must only be called by an AcpiHandler of type H to make sure that it’s safe to unmap the mapping.

  • virtual_start must be a valid pointer.
  • region_length must be equal to or larger than size_of::<T>().
  • handler must be the same AcpiHandler that created the mapping.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.