uefi_raw::table::runtime

Struct RuntimeServices

source
#[repr(C)]
pub struct RuntimeServices {
Show 15 fields pub header: Header, pub get_time: unsafe extern "efiapi" fn(time: *mut Time, capabilities: *mut TimeCapabilities) -> Status, pub set_time: unsafe extern "efiapi" fn(time: *const Time) -> Status, pub get_wakeup_time: unsafe extern "efiapi" fn(enabled: *mut u8, pending: *mut u8, time: *mut Time) -> Status, pub set_wakeup_time: unsafe extern "efiapi" fn(enable: u8, time: *const Time) -> Status, pub set_virtual_address_map: unsafe extern "efiapi" fn(map_size: usize, desc_size: usize, desc_version: u32, virtual_map: *mut MemoryDescriptor) -> Status, pub convert_pointer: unsafe extern "efiapi" fn(debug_disposition: usize, address: *mut *const c_void) -> Status, pub get_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: *mut VariableAttributes, data_size: *mut usize, data: *mut u8) -> Status, pub get_next_variable_name: unsafe extern "efiapi" fn(variable_name_size: *mut usize, variable_name: *mut u16, vendor_guid: *mut Guid) -> Status, pub set_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: VariableAttributes, data_size: usize, data: *const u8) -> Status, pub get_next_high_monotonic_count: unsafe extern "efiapi" fn(high_count: *mut u32) -> Status, pub reset_system: unsafe extern "efiapi" fn(rt: ResetType, status: Status, data_size: usize, data: *const u8) -> !, pub update_capsule: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, scatter_gather_list: PhysicalAddress) -> Status, pub query_capsule_capabilities: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, maximum_capsule_size: *mut u64, reset_type: *mut ResetType) -> Status, pub query_variable_info: unsafe extern "efiapi" fn(attributes: VariableAttributes, maximum_variable_storage_size: *mut u64, remaining_variable_storage_size: *mut u64, maximum_variable_size: *mut u64) -> Status,
}
Expand description

Table of pointers to all the runtime services.

This table, and the function pointers it contains are valid even after the UEFI OS loader and OS have taken control of the platform.

Fields§

§header: Header§get_time: unsafe extern "efiapi" fn(time: *mut Time, capabilities: *mut TimeCapabilities) -> Status§set_time: unsafe extern "efiapi" fn(time: *const Time) -> Status§get_wakeup_time: unsafe extern "efiapi" fn(enabled: *mut u8, pending: *mut u8, time: *mut Time) -> Status§set_wakeup_time: unsafe extern "efiapi" fn(enable: u8, time: *const Time) -> Status§set_virtual_address_map: unsafe extern "efiapi" fn(map_size: usize, desc_size: usize, desc_version: u32, virtual_map: *mut MemoryDescriptor) -> Status§convert_pointer: unsafe extern "efiapi" fn(debug_disposition: usize, address: *mut *const c_void) -> Status§get_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: *mut VariableAttributes, data_size: *mut usize, data: *mut u8) -> Status§get_next_variable_name: unsafe extern "efiapi" fn(variable_name_size: *mut usize, variable_name: *mut u16, vendor_guid: *mut Guid) -> Status§set_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: VariableAttributes, data_size: usize, data: *const u8) -> Status§get_next_high_monotonic_count: unsafe extern "efiapi" fn(high_count: *mut u32) -> Status§reset_system: unsafe extern "efiapi" fn(rt: ResetType, status: Status, data_size: usize, data: *const u8) -> !§update_capsule: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, scatter_gather_list: PhysicalAddress) -> Status§query_capsule_capabilities: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, maximum_capsule_size: *mut u64, reset_type: *mut ResetType) -> Status§query_variable_info: unsafe extern "efiapi" fn(attributes: VariableAttributes, maximum_variable_storage_size: *mut u64, remaining_variable_storage_size: *mut u64, maximum_variable_size: *mut u64) -> Status

Trait Implementations§

source§

impl Debug for RuntimeServices

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> 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.