Struct uefi::table::runtime::RuntimeServices [−][src]
#[repr(C)]pub struct RuntimeServices { /* fields omitted */ }
Expand description
Contains pointers to all of 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.
Implementations
impl RuntimeServices
[src]
impl RuntimeServices
[src]pub fn get_time_and_caps(&self) -> Result<(Time, TimeCapabilities)>
[src]
pub fn get_time_and_caps(&self) -> Result<(Time, TimeCapabilities)>
[src]Query the current time and date information and the RTC capabilities
pub unsafe fn set_time(&mut self, time: &Time) -> Result
[src]
pub unsafe fn set_time(&mut self, time: &Time) -> Result
[src]Sets the current local time and date information
During runtime, if a PC-AT CMOS device is present in the platform, the
caller must synchronize access to the device before calling set_time
.
Safety
Undefined behavior could happen if multiple tasks try to use this function at the same time without synchronisation.
pub unsafe fn set_virtual_address_map(
&self,
map: &mut [MemoryDescriptor]
) -> Result
[src]
pub unsafe fn set_virtual_address_map(
&self,
map: &mut [MemoryDescriptor]
) -> Result
[src]Changes the runtime addressing mode of EFI firmware from physical to virtual.
Safety
Setting new virtual memory map is unsafe and may cause undefined behaviors.