Crate zfi

Source

Macros§

debugln
Prints to the debug log, with a newline.
eprintln
Prints to the standard error, with a newline.
println
Prints to the standard output, with a newline.
str
Construct an EFI string from a Rust string literal.

Structs§

BootServices
Represents an EFI_BOOT_SERVICES.
DebugFile
A debug writer that write the debug log to a text file.
Device
Represents an EFI_HANDLE for a device.
EfiChar
A non-NUL character in the EFI string.
EfiStr
A borrowed EFI string. The string is always have NUL at the end.
EfiString
An owned version of EfiStr. The string is always have NUL at the end.
File
Represents an EFI_FILE_PROTOCOL.
FileAttributes
Attributes of the file to create.
FileInfo
Represents an EFI_FILE_INFO.
FileModes
Flags to control how to open a File.
Guid
An implementation of EFI_GUID.
Image
Represents an EFI_HANDLE for the image.
LoadedImage
Represents an EFI_LOADED_IMAGE_PROTOCOL.
MemoryDescriptor
Represents an EFI_MEMORY_DESCRIPTOR.
OpenProtocolAttributes
Attributes of BootServices::open_protocol().
Owned
Encapsulate a pointer that need to be free by some mechanism.
Pages
Encapsulate a pointer to one or more memory pages.
Path
Represents one or more EFI_DEVICE_PATH_PROTOCOL.
PathBuf
An owned version of Path.
PathNodes
An iterator over device path nodes.
PoolAllocator
An implementation of GlobalAlloc using EFI memory pool.
RuntimeServices
Represents an EFI_RUNTIME_SERVICES.
SimpleFileSystem
Represents an EFI_SIMPLE_FILE_SYSTEM_PROTOCOL.
SimpleTextInput
Represents an EFI_SIMPLE_TEXT_INPUT_PROTOCOL.
SimpleTextOutput
Represents an EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.
Status
Represents an EFI_STATUS.
SystemTable
Represents an EFI_SYSTEM_TABLE.
TableHeader
Represents an EFI_TABLE_HEADER.
TableRevision
Represents a Revision field in the EFI_TABLE_HEADER.
Time
Represents an EFI_TIME.

Enums§

AllocateType
Represents an EFI_ALLOCATE_TYPE.
DebugFileError
Represents an error when DebugFile constructing is failed.
Dtor
A destructor for an object encapsulated by Owned.
EfiStringError
Represents an error when an EfiString cnostruction is failed.
FileCreateError
Represents an error when File::create() is failed.
FileSetLenError
Represents an error when File::set_len() is failed.
MemoryType
Represents an EFI_MEMORY_TYPE.
PathNode
Contains the data that read from a device path node.

Constants§

PAGE_SIZE
Page size of the system, in bytes.

Functions§

allocate_pages
A shortcut to super::BootServices::allocate_pages().
current_image
Returns im that was passed to init().
debug_writer
Gets the debug writer that was specified as an argument of crate::init().
get_memory_map
Just a shortcut to super::BootServices::get_memory_map(). Do not discard the returned map if you want a key to use with super::BootServices::exit_boot_services().
get_protocol
Invokes EFI_BOOT_SERVICES.OpenProtocol.
init
Initializes the ZFI.
open_protocol
Invokes EFI_BOOT_SERVICES.OpenProtocol.
page_count
Gets how many pages required for a specified number of bytes.
pause
Wait for a key stroke.
system_table
Returns st that was passed to init().

Attribute Macros§

main
Define the entry of EFI program, automatically import alloc crate, generate global_allocator and panic_handler.