Struct uefi_raw::table::boot::BootServices

source ·
#[repr(C)]
pub struct BootServices {
Show 45 fields pub header: Header, pub raise_tpl: unsafe extern "efiapi" fn(new_tpl: Tpl) -> Tpl, pub restore_tpl: unsafe extern "efiapi" fn(old_tpl: Tpl), pub allocate_pages: unsafe extern "efiapi" fn(alloc_ty: u32, mem_ty: MemoryType, count: usize, addr: *mut PhysicalAddress) -> Status, pub free_pages: unsafe extern "efiapi" fn(addr: PhysicalAddress, pages: usize) -> Status, pub get_memory_map: unsafe extern "efiapi" fn(size: *mut usize, map: *mut MemoryDescriptor, key: *mut usize, desc_size: *mut usize, desc_version: *mut u32) -> Status, pub allocate_pool: unsafe extern "efiapi" fn(pool_type: MemoryType, size: usize, buffer: *mut *mut u8) -> Status, pub free_pool: unsafe extern "efiapi" fn(buffer: *mut u8) -> Status, pub create_event: unsafe extern "efiapi" fn(ty: EventType, notify_tpl: Tpl, notify_func: Option<EventNotifyFn>, notify_ctx: *mut c_void, out_event: *mut Event) -> Status, pub set_timer: unsafe extern "efiapi" fn(event: Event, ty: u32, trigger_time: u64) -> Status, pub wait_for_event: unsafe extern "efiapi" fn(number_of_events: usize, events: *mut Event, out_index: *mut usize) -> Status, pub signal_event: unsafe extern "efiapi" fn(event: Event) -> Status, pub close_event: unsafe extern "efiapi" fn(event: Event) -> Status, pub check_event: unsafe extern "efiapi" fn(event: Event) -> Status, pub install_protocol_interface: unsafe extern "efiapi" fn(handle: *mut Handle, guid: *const Guid, interface_type: InterfaceType, interface: *const c_void) -> Status, pub reinstall_protocol_interface: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, old_interface: *const c_void, new_interface: *const c_void) -> Status, pub uninstall_protocol_interface: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, interface: *const c_void) -> Status, pub handle_protocol: unsafe extern "efiapi" fn(handle: Handle, proto: *const Guid, out_proto: *mut *mut c_void) -> Status, pub reserved: *mut c_void, pub register_protocol_notify: unsafe extern "efiapi" fn(protocol: *const Guid, event: Event, registration: *mut *const c_void) -> Status, pub locate_handle: unsafe extern "efiapi" fn(search_ty: i32, proto: *const Guid, key: *const c_void, buf_sz: *mut usize, buf: *mut Handle) -> Status, pub locate_device_path: unsafe extern "efiapi" fn(proto: *const Guid, device_path: *mut *const DevicePathProtocol, out_handle: *mut Handle) -> Status, pub install_configuration_table: unsafe extern "efiapi" fn(guid_entry: *const Guid, table_ptr: *const c_void) -> Status, pub load_image: unsafe extern "efiapi" fn(boot_policy: u8, parent_image_handle: Handle, device_path: *const DevicePathProtocol, source_buffer: *const u8, source_size: usize, image_handle: *mut Handle) -> Status, pub start_image: unsafe extern "efiapi" fn(image_handle: Handle, exit_data_size: *mut usize, exit_data: *mut *mut Char16) -> Status, pub exit: unsafe extern "efiapi" fn(image_handle: Handle, exit_status: Status, exit_data_size: usize, exit_data: *mut Char16) -> !, pub unload_image: unsafe extern "efiapi" fn(image_handle: Handle) -> Status, pub exit_boot_services: unsafe extern "efiapi" fn(image_handle: Handle, map_key: usize) -> Status, pub get_next_monotonic_count: unsafe extern "efiapi" fn(count: *mut u64) -> Status, pub stall: unsafe extern "efiapi" fn(microseconds: usize) -> Status, pub set_watchdog_timer: unsafe extern "efiapi" fn(timeout: usize, watchdog_code: u64, data_size: usize, watchdog_data: *const u16) -> Status, pub connect_controller: unsafe extern "efiapi" fn(controller: Handle, driver_image: Handle, remaining_device_path: *const DevicePathProtocol, recursive: bool) -> Status, pub disconnect_controller: unsafe extern "efiapi" fn(controller: Handle, driver_image: Handle, child: Handle) -> Status, pub open_protocol: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, interface: *mut *mut c_void, agent_handle: Handle, controller_handle: Handle, attributes: u32) -> Status, pub close_protocol: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, agent_handle: Handle, controller_handle: Handle) -> Status, pub open_protocol_information: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, entry_buffer: *mut *const OpenProtocolInformationEntry, entry_count: *mut usize) -> Status, pub protocols_per_handle: unsafe extern "efiapi" fn(handle: Handle, protocol_buffer: *mut *mut *const Guid, protocol_buffer_count: *mut usize) -> Status, pub locate_handle_buffer: unsafe extern "efiapi" fn(search_ty: i32, proto: *const Guid, key: *const c_void, no_handles: *mut usize, buf: *mut *mut Handle) -> Status, pub locate_protocol: unsafe extern "efiapi" fn(proto: *const Guid, registration: *mut c_void, out_proto: *mut *mut c_void) -> Status, pub install_multiple_protocol_interfaces: unsafe extern "C" fn(handle: *mut Handle, ...) -> Status, pub uninstall_multiple_protocol_interfaces: unsafe extern "C" fn(handle: Handle, ...) -> Status, pub calculate_crc32: unsafe extern "efiapi" fn(data: *const c_void, data_size: usize, crc32: *mut u32) -> Status, pub copy_mem: unsafe extern "efiapi" fn(dest: *mut u8, src: *const u8, len: usize), pub set_mem: unsafe extern "efiapi" fn(buffer: *mut u8, len: usize, value: u8), pub create_event_ex: unsafe extern "efiapi" fn(ty: EventType, notify_tpl: Tpl, notify_fn: Option<EventNotifyFn>, notify_ctx: *mut c_void, event_group: *mut Guid, out_event: *mut Event) -> Status,
}
Expand description

Table of pointers to all the boot services.

Fields§

§header: Header§raise_tpl: unsafe extern "efiapi" fn(new_tpl: Tpl) -> Tpl§restore_tpl: unsafe extern "efiapi" fn(old_tpl: Tpl)§allocate_pages: unsafe extern "efiapi" fn(alloc_ty: u32, mem_ty: MemoryType, count: usize, addr: *mut PhysicalAddress) -> Status§free_pages: unsafe extern "efiapi" fn(addr: PhysicalAddress, pages: usize) -> Status§get_memory_map: unsafe extern "efiapi" fn(size: *mut usize, map: *mut MemoryDescriptor, key: *mut usize, desc_size: *mut usize, desc_version: *mut u32) -> Status§allocate_pool: unsafe extern "efiapi" fn(pool_type: MemoryType, size: usize, buffer: *mut *mut u8) -> Status§free_pool: unsafe extern "efiapi" fn(buffer: *mut u8) -> Status§create_event: unsafe extern "efiapi" fn(ty: EventType, notify_tpl: Tpl, notify_func: Option<EventNotifyFn>, notify_ctx: *mut c_void, out_event: *mut Event) -> Status§set_timer: unsafe extern "efiapi" fn(event: Event, ty: u32, trigger_time: u64) -> Status§wait_for_event: unsafe extern "efiapi" fn(number_of_events: usize, events: *mut Event, out_index: *mut usize) -> Status§signal_event: unsafe extern "efiapi" fn(event: Event) -> Status§close_event: unsafe extern "efiapi" fn(event: Event) -> Status§check_event: unsafe extern "efiapi" fn(event: Event) -> Status§install_protocol_interface: unsafe extern "efiapi" fn(handle: *mut Handle, guid: *const Guid, interface_type: InterfaceType, interface: *const c_void) -> Status§reinstall_protocol_interface: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, old_interface: *const c_void, new_interface: *const c_void) -> Status§uninstall_protocol_interface: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, interface: *const c_void) -> Status§handle_protocol: unsafe extern "efiapi" fn(handle: Handle, proto: *const Guid, out_proto: *mut *mut c_void) -> Status§reserved: *mut c_void§register_protocol_notify: unsafe extern "efiapi" fn(protocol: *const Guid, event: Event, registration: *mut *const c_void) -> Status§locate_handle: unsafe extern "efiapi" fn(search_ty: i32, proto: *const Guid, key: *const c_void, buf_sz: *mut usize, buf: *mut Handle) -> Status§locate_device_path: unsafe extern "efiapi" fn(proto: *const Guid, device_path: *mut *const DevicePathProtocol, out_handle: *mut Handle) -> Status§install_configuration_table: unsafe extern "efiapi" fn(guid_entry: *const Guid, table_ptr: *const c_void) -> Status§load_image: unsafe extern "efiapi" fn(boot_policy: u8, parent_image_handle: Handle, device_path: *const DevicePathProtocol, source_buffer: *const u8, source_size: usize, image_handle: *mut Handle) -> Status§start_image: unsafe extern "efiapi" fn(image_handle: Handle, exit_data_size: *mut usize, exit_data: *mut *mut Char16) -> Status§exit: unsafe extern "efiapi" fn(image_handle: Handle, exit_status: Status, exit_data_size: usize, exit_data: *mut Char16) -> !§unload_image: unsafe extern "efiapi" fn(image_handle: Handle) -> Status§exit_boot_services: unsafe extern "efiapi" fn(image_handle: Handle, map_key: usize) -> Status§get_next_monotonic_count: unsafe extern "efiapi" fn(count: *mut u64) -> Status§stall: unsafe extern "efiapi" fn(microseconds: usize) -> Status§set_watchdog_timer: unsafe extern "efiapi" fn(timeout: usize, watchdog_code: u64, data_size: usize, watchdog_data: *const u16) -> Status§connect_controller: unsafe extern "efiapi" fn(controller: Handle, driver_image: Handle, remaining_device_path: *const DevicePathProtocol, recursive: bool) -> Status§disconnect_controller: unsafe extern "efiapi" fn(controller: Handle, driver_image: Handle, child: Handle) -> Status§open_protocol: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, interface: *mut *mut c_void, agent_handle: Handle, controller_handle: Handle, attributes: u32) -> Status§close_protocol: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, agent_handle: Handle, controller_handle: Handle) -> Status§open_protocol_information: unsafe extern "efiapi" fn(handle: Handle, protocol: *const Guid, entry_buffer: *mut *const OpenProtocolInformationEntry, entry_count: *mut usize) -> Status§protocols_per_handle: unsafe extern "efiapi" fn(handle: Handle, protocol_buffer: *mut *mut *const Guid, protocol_buffer_count: *mut usize) -> Status§locate_handle_buffer: unsafe extern "efiapi" fn(search_ty: i32, proto: *const Guid, key: *const c_void, no_handles: *mut usize, buf: *mut *mut Handle) -> Status§locate_protocol: unsafe extern "efiapi" fn(proto: *const Guid, registration: *mut c_void, out_proto: *mut *mut c_void) -> Status§install_multiple_protocol_interfaces: unsafe extern "C" fn(handle: *mut Handle, ...) -> Status

Warning: this function pointer is declared as extern "C" rather than extern "efiapi". That means it will work correctly when called from a UEFI target (*-unknown-uefi), but will not work when called from a target with a different calling convention such as x86_64-unknown-linux-gnu`.

Support for C-variadics with efiapi requires the unstable extended_varargs_abi_support feature.

§uninstall_multiple_protocol_interfaces: unsafe extern "C" fn(handle: Handle, ...) -> Status

Warning: this function pointer is declared as extern "C" rather than extern "efiapi". That means it will work correctly when called from a UEFI target (*-unknown-uefi), but will not work when called from a target with a different calling convention such as x86_64-unknown-linux-gnu`.

Support for C-variadics with efiapi requires the unstable extended_varargs_abi_support feature.

§calculate_crc32: unsafe extern "efiapi" fn(data: *const c_void, data_size: usize, crc32: *mut u32) -> Status§copy_mem: unsafe extern "efiapi" fn(dest: *mut u8, src: *const u8, len: usize)§set_mem: unsafe extern "efiapi" fn(buffer: *mut u8, len: usize, value: u8)§create_event_ex: unsafe extern "efiapi" fn(ty: EventType, notify_tpl: Tpl, notify_fn: Option<EventNotifyFn>, notify_ctx: *mut c_void, event_group: *mut Guid, out_event: *mut Event) -> Status

Trait Implementations§

source§

impl Debug for BootServices

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.