Efi_Block_Io.readblocks() - Intel Extensible Firmware Interface Specification

Intel extensible firmware interface specification
Table of Contents

Advertisement

8.1.2

EFI_BLOCK_IO.ReadBlocks()

Summary
Reads the requested number of blocks from the device.
Prototype
EFI_STATUS
(EFIAPI *EFI_BLOCK_READ) (
IN EFI_BLOCK_IO
IN UINT32
IN EFI_LBA
IN UINTN
OUT VOID
);
Parameters
This
MediaId
LBA
BufferSize
Buffer
Description
The
ReadBlocks()
blocks are read, or an error is returned.
If there is no media in the device, the function returns EFI_NO_MEDIA. If the
the id for the current media in the device, the function returns EFI_MEDIA_CHANGED.
Version 1.02
Indicates a pointer to the calling context. Type
defined in Section 8.1.
The media id that the read request is for.
The starting logical block address to read from on the device. Type
is defined in Section 8.1.
EFI_LBA
The size of the
Buffer
block size of the device.
A pointer to the destination buffer for the data. The caller is responsible
for either having implicit or explicit ownership of the buffer.
function reads the requested number of blocks from the device. All the
*This,
MediaId,
LBA,
BufferSize,
*Buffer
EFI_BLOCK_IO
in bytes. This must be a multiple of the intrinsic
12/12/00
Block I/O Protocol
is
is not
MediaId
177

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Extensible Firmware Interface and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents