![Intel Extensible Firmware Interface Specification Download Page 195](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117195.webp)
Block I/O Protocol
Version 1.02
12/12/00
177
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
*This,
IN UINT32
MediaId,
IN EFI_LBA
LBA,
IN UINTN
BufferSize,
OUT VOID
*Buffer
);
Parameters
This
Indicates a pointer to the calling context. Type
EFI_BLOCK_IO
is
defined in Section 8.1.
MediaId
The media id that the read request is for.
LBA
The starting logical block address to read from on the device. Type
EFI_LBA
is defined in Section 8.1.
BufferSize
The size of the
Buffer
in bytes. This must be a multiple of the intrinsic
block size of the device.
Buffer
A pointer to the destination buffer for the data. The caller is responsible
for either having implicit or explicit ownership of the buffer.
Description
The
ReadBlocks()
function reads the requested number of blocks from the device. All the
blocks are read, or an error is returned.
If there is no media in the device, the function returns
EFI_NO_MEDIA
. If the
MediaId
is not
the id for the current media in the device, the function returns
EFI_MEDIA_CHANGED
.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...