pub struct Acpi {
root: &'static SysDescTable,
entry_size: usize,
}
Expand description
ACPI is the successor to APM (Advanced Power Management), aiming to give the operating system more control over the hardware.
This extended control, for instance, enables the operating system to assign a particular amount of energy to every device (e.g., by disabling a device or changing to standby mode). For this purpose, BIOS and chipset provide a set of tables that describe the system and its components and provide routines the OS can call. These tables contain details about the system, such as the number of CPU cores and the LAPIC/IOAPIC, which are determined during system boot.
Fields§
§root: &'static SysDescTable
§entry_size: usize
Implementations§
source§impl Acpi
impl Acpi
sourcepub fn load() -> Result<Acpi, ApicError>
pub fn load() -> Result<Acpi, ApicError>
Load the ACPI tables by searching through the BIOS memory area.
pub fn len(&self) -> usize
sourcepub fn entry(&self, i: usize) -> Option<&'static SysDescTable>
pub fn entry(&self, i: usize) -> Option<&'static SysDescTable>
Get the i-th entry
sourcepub fn find(&self, signature: [u8; 4]) -> Option<&'static SysDescTable>
pub fn find(&self, signature: [u8; 4]) -> Option<&'static SysDescTable>
Find the given system descriptor table