Skip to main content

SDTHeader

Struct SDTHeader 

Source
#[repr(C, packed(1))]
pub struct SDTHeader { pub signature: [u8; 4], pub length: u32, pub revision: u8, pub checksum: u8, pub oemid: [u8; 6], pub oem_table_id: [u8; 8], pub oem_revision: u32, pub creator_id: u32, pub creator_revision: u32, }
Expand description

§System Description Table Header structure.

All system description tables begin with the structure shown in the SDTHeader Fields. The signature field in this table determines the content of the system description table.

Fields§

§signature: [u8; 4]

The ASCII string representation of the table identifier. Note that if OSPM finds a signature in a table that is not listed in this table, then OSPM ignores the entire table (it is not loaded into ACPI namespace); OSPM ignores the table even though the values in the Length and Checksum fields are correct.

§length: u32

The length of the table, in bytes, including the header, starting from offset 0. This field is used to record the size of the entire table.

§revision: u8

The revision of the structure corresponding to the signature field for this table.
Larger revision numbers are backward compatible to lower revision numbers with the same signature.

§checksum: u8

The entire table, including the checksum field, must add to zero to be considered valid.

§oemid: [u8; 6]

An OEM-supplied string that identifies the OEM.

§oem_table_id: [u8; 8]

An OEM-supplied string that the OEM uses to identify the particular data table.
This field is particularly useful when defining a definition block to distinguish definition block functions. The OEM assigns each dissimilar structure a new OEM Table ID.

§oem_revision: u32

An OEM-supplied revision number. Larger numbers are assumed to be newer revisions.

§creator_id: u32

Vendor ID of utility that created the table. For tables containing Definition Blocks, this is the ID for the ASL Compiler.

§creator_revision: u32

Revision of utility that created the table. For tables containing Definition Blocks, this is the revision for the ASL Compiler.

Trait Implementations§

Source§

impl Clone for SDTHeader

Source§

fn clone(&self) -> SDTHeader

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SDTHeader

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.