#[repr(C)]pub struct FirmwareVolumeBlock2Protocol {
pub get_attributes: unsafe extern "efiapi" fn(this: *const Self, attributes: *mut FirmwareVolumeAttributes) -> Status,
pub set_attributes: unsafe extern "efiapi" fn(this: *const Self, attributes: *mut FirmwareVolumeAttributes) -> Status,
pub get_physical_address: unsafe extern "efiapi" fn(this: *const Self, address: *mut PhysicalAddress) -> Status,
pub get_block_size: unsafe extern "efiapi" fn(this: *const Self, lba: Lba, block_size: *mut usize, number_of_blocks: *mut usize) -> Status,
pub read: unsafe extern "efiapi" fn(this: *const Self, lba: Lba, offset: usize, num_bytes: *mut usize, buffer: *mut u8) -> Status,
pub write: unsafe extern "efiapi" fn(this: *const Self, lba: Lba, offset: usize, num_bytes: *mut usize, buffer: *mut u8) -> Status,
pub erase_blocks: unsafe extern "C" fn(this: *const Self, ...) -> Status,
pub parent_handle: Handle,
}Expand description
EFI_FIRMWARE_VOLUME_BLOCK2_PROTOCOL
Fields§
§get_attributes: unsafe extern "efiapi" fn(this: *const Self, attributes: *mut FirmwareVolumeAttributes) -> Status§set_attributes: unsafe extern "efiapi" fn(this: *const Self, attributes: *mut FirmwareVolumeAttributes) -> Status§get_physical_address: unsafe extern "efiapi" fn(this: *const Self, address: *mut PhysicalAddress) -> Status§get_block_size: unsafe extern "efiapi" fn(this: *const Self, lba: Lba, block_size: *mut usize, number_of_blocks: *mut usize) -> Status§read: unsafe extern "efiapi" fn(this: *const Self, lba: Lba, offset: usize, num_bytes: *mut usize, buffer: *mut u8) -> Status§write: unsafe extern "efiapi" fn(this: *const Self, lba: Lba, offset: usize, num_bytes: *mut usize, buffer: *mut u8) -> Status§erase_blocks: unsafe extern "C" fn(this: *const Self, ...) -> Status§parent_handle: Handle