morpheus_bootloader

Struct BootServices

Source
#[repr(C)]
pub struct BootServices {
Show 31 fields pub(crate) _header: [u8; 24], pub(crate) _raise_tpl: usize, pub(crate) _restore_tpl: usize, pub allocate_pages: extern "efiapi" fn(allocate_type: usize, memory_type: usize, pages: usize, memory: *mut u64) -> usize, pub free_pages: extern "efiapi" fn(memory: u64, pages: usize) -> usize, pub get_memory_map: extern "efiapi" fn(memory_map_size: *mut usize, memory_map: *mut u8, map_key: *mut usize, descriptor_size: *mut usize, descriptor_version: *mut u32) -> usize, pub(crate) allocate_pool: extern "efiapi" fn(pool_type: usize, size: usize, buffer: *mut *mut u8) -> usize, pub(crate) free_pool: extern "efiapi" fn(buffer: *mut u8) -> usize, pub(crate) _create_event: usize, pub(crate) _set_timer: usize, pub(crate) _wait_for_event: usize, pub(crate) _signal_event: usize, pub(crate) _close_event: usize, pub(crate) _check_event: usize, pub(crate) install_protocol_interface: extern "efiapi" fn(handle: *mut *mut (), protocol: *const [u8; 16], interface_type: usize, interface: *mut c_void) -> usize, pub(crate) _reinstall_protocol_interface: extern "efiapi" fn(handle: *mut (), protocol: *const [u8; 16], interface_type: usize, old_interface: *mut c_void, new_interface: *mut c_void) -> usize, pub(crate) uninstall_protocol_interface: extern "efiapi" fn(handle: *mut (), protocol: *const [u8; 16], interface: *mut c_void) -> usize, pub(crate) handle_protocol: extern "efiapi" fn(handle: *mut (), protocol: *const [u8; 16], interface: *mut *mut ()) -> usize, pub(crate) _reserved: usize, pub(crate) _register_protocol_notify: usize, pub(crate) locate_handle: extern "efiapi" fn(search_type: usize, protocol: *const [u8; 16], search_key: *const (), buffer_size: *mut usize, buffer: *mut *mut ()) -> usize, pub(crate) locate_device_path: extern "efiapi" fn(protocol: *const [u8; 16], device_path: *mut *mut (), handle: *mut *mut ()) -> usize, pub(crate) install_configuration_table: extern "efiapi" fn(guid: *const [u8; 16], table: *const c_void) -> usize, pub load_image: extern "efiapi" fn(boot_policy: bool, parent_image_handle: *mut (), file_path: *const (), source_buffer: *const c_void, source_size: usize, image_handle: *mut *mut ()) -> usize, pub start_image: extern "efiapi" fn(image_handle: *mut (), exit_data_size: *mut usize, exit_data: *mut *mut u16) -> usize, pub(crate) _exit: extern "efiapi" fn(_: *mut (), _: usize, _: *const u16) -> usize, pub unload_image: extern "efiapi" fn(image_handle: *mut ()) -> usize, pub exit_boot_services: extern "efiapi" fn(image_handle: *mut (), map_key: usize) -> usize, pub(crate) _get_next_monotonic_count: usize, pub stall: extern "efiapi" fn(microseconds: usize) -> usize, pub(crate) _set_watchdog_timer: usize,
}

Fields§

§_header: [u8; 24]§_raise_tpl: usize§_restore_tpl: usize§allocate_pages: extern "efiapi" fn(allocate_type: usize, memory_type: usize, pages: usize, memory: *mut u64) -> usize§free_pages: extern "efiapi" fn(memory: u64, pages: usize) -> usize§get_memory_map: extern "efiapi" fn(memory_map_size: *mut usize, memory_map: *mut u8, map_key: *mut usize, descriptor_size: *mut usize, descriptor_version: *mut u32) -> usize§allocate_pool: extern "efiapi" fn(pool_type: usize, size: usize, buffer: *mut *mut u8) -> usize§free_pool: extern "efiapi" fn(buffer: *mut u8) -> usize§_create_event: usize§_set_timer: usize§_wait_for_event: usize§_signal_event: usize§_close_event: usize§_check_event: usize§install_protocol_interface: extern "efiapi" fn(handle: *mut *mut (), protocol: *const [u8; 16], interface_type: usize, interface: *mut c_void) -> usize§_reinstall_protocol_interface: extern "efiapi" fn(handle: *mut (), protocol: *const [u8; 16], interface_type: usize, old_interface: *mut c_void, new_interface: *mut c_void) -> usize§uninstall_protocol_interface: extern "efiapi" fn(handle: *mut (), protocol: *const [u8; 16], interface: *mut c_void) -> usize§handle_protocol: extern "efiapi" fn(handle: *mut (), protocol: *const [u8; 16], interface: *mut *mut ()) -> usize§_reserved: usize§_register_protocol_notify: usize§locate_handle: extern "efiapi" fn(search_type: usize, protocol: *const [u8; 16], search_key: *const (), buffer_size: *mut usize, buffer: *mut *mut ()) -> usize§locate_device_path: extern "efiapi" fn(protocol: *const [u8; 16], device_path: *mut *mut (), handle: *mut *mut ()) -> usize§install_configuration_table: extern "efiapi" fn(guid: *const [u8; 16], table: *const c_void) -> usize§load_image: extern "efiapi" fn(boot_policy: bool, parent_image_handle: *mut (), file_path: *const (), source_buffer: *const c_void, source_size: usize, image_handle: *mut *mut ()) -> usize§start_image: extern "efiapi" fn(image_handle: *mut (), exit_data_size: *mut usize, exit_data: *mut *mut u16) -> usize§_exit: extern "efiapi" fn(_: *mut (), _: usize, _: *const u16) -> usize§unload_image: extern "efiapi" fn(image_handle: *mut ()) -> usize§exit_boot_services: extern "efiapi" fn(image_handle: *mut (), map_key: usize) -> usize§_get_next_monotonic_count: usize§stall: extern "efiapi" fn(microseconds: usize) -> usize

Stall for microseconds

§_set_watchdog_timer: usize

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.