Struct tartan_uefi::proto::SimpleFileSystem
source · #[repr(C)]pub struct SimpleFileSystem {
pub revision: u64,
/* private fields */
}
Expand description
Protocol for accessing a file system supported by UEFI (typically FAT).
Fields§
§revision: u64
Implemented revision of the SimpleFileSystem protocol.
Implementations§
source§impl SimpleFileSystem
impl SimpleFileSystem
sourcepub const MIN_REVISION: u32 = 65_536u32
pub const MIN_REVISION: u32 = 65_536u32
Minimum supported SimpleFileSystem::revision
. Future versions are
guaranteed to be backwards-compatible.
sourcepub fn open_volume(&self) -> Result<&File, Status>
pub fn open_volume(&self) -> Result<&File, Status>
Get a handle to the root of the file system.
Errors
This method can fail for many reasons, including standard I/O issues like device errors or resource exhaustion. It will also fail if the file system on the device is not supported by the UEFI implementation.
Panics
Panics if the firmware does not behave according to the spec.