9.1.1
EFI_DISK_IO.ReadDisk()
Summary
Reads a specified number of bytes from a device.
Prototype
EFI_STATUS
(EFIAPI *EFI_DISK_READ) (
IN EFI_DISK_IO
IN UINT32
IN UINT64
IN UINTN
OUT VOID
);
Parameters
This
MediaId
Offset
BufferSize
Buffer
Description
The
ReadDisk()
device. All the bytes are read, or an error is returned. If there is no medium in the device, the
function returns EFI_NO_MEDIA. If the
device, the function returns EFI_MEDIA_CHANGED.
Status Codes Returned
EFI_SUCCESS
EFI_DEVICE_ERROR
EFI_NO_MEDIA
EFI_MEDIA_CHANGED
EFI_INVALID_PARAMETER
Version 1.02
Indicates a pointer to the calling context. Type
defined in Section 9.1.
Id of the medium to be read.
The starting byte offset on the logical block I/O device to read from.
The size in bytes of Buffer. The number of bytes to read from 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 number of bytes specified by
MediaId
The data was read correctly from the device.
The device reported an error while performing the read operation.
There is no medium in the device.
MediaId
The
is not for the current medium.
The read request contains device addresses that are not valid for the
device.
*This,
MediaId,
Offset,
BufferSize,
*Buffer
EFI_DISK_IO
BufferSize
is not the id of the medium currently in the
12/12/00
Disk I/O Protocol
is
from the
185
Need help?
Do you have a question about the Extensible Firmware Interface and is the answer not in the manual?