Expand description
Various helper functions for other modules.
§Safety
This module uses unsafe in 2 places.
MaybeUninit<T>
provides guarantees that its size and layout will be exactly the same asT
. Because of this, it is safe to interpret a pointer of typeT
as a pointer of typeMaybeUninit<T>
(note: the opposite is not always true). Because of this, this is essentially reconstructing a pointer from itself, which is safe.- The timer is created with no callbacks. This means that it is safe, since there are no callbacks that need to specially
handle
ExitBootServices
.
Enums§
- Device
Path Error - An
Error
that may result from building aDevicePath
- StrError
- An
Error
that may result from converting aString
to another format.
Functions§
- create_
timer - Create a timer that will fire every duration in milliseconds.
- get_
arch - Gets the target architecture of the bootloader binary.
- locate_
protocol - Open a protocol given a type implementing
ProtocolPointer
.