Struct uefi_raw::table::runtime::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§
Auto Trait Implementations§
impl Freeze for RuntimeServices
impl RefUnwindSafe for RuntimeServices
impl Send for RuntimeServices
impl Sync for RuntimeServices
impl Unpin for RuntimeServices
impl UnwindSafe for RuntimeServices
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more