Extensible Firmware Interface Specification
9.1.2
EFI_DISK_IO.WriteDisk()
Summary
Writes a specified number of bytes to a device.
Prototype
EFI_STATUS
(EFIAPI *EFI_DISK_WRITE) (
IN EFI_DISK_IO
IN UINT32
IN UINT64
IN UNITN
IN VOID
);
Parameters
This
MediaId
Offset
BufferSize
Buffer
Description
The
WriteDisk()
All bytes are written, or an error is returned. If there is no medium in the device, the function
returns EFI_NO_MEDIA. If the
function returns EFI_MEDIA_CHANGED.
Status Codes Returned
EFI_SUCCESS
EFI_WRITE_PROTECTED
EFI_NO_MEDIA
EFI_MEDIA_CHANGED
EFI_DEVICE_ERROR
EFI_INVALID_PARAMETER
186
Indicates a pointer to the calling context. Type
defined in Section 9.1.
Id of the medium to be written.
The starting byte offset on the logical block I/O device to write.
The size in bytes of Buffer. The number of bytes to write to the
device.
A pointer to the buffer containing the data to be written.
function writes the number of bytes specified by
is not the id of the medium currently in the device, the
MediaId
The data was written correctly to the device.
The device cannot be written to.
There is no medium in the device.
The
is not for the current medium.
MediaId
The device reported an error while performing the write operation.
The write request contains device addresses that are not valid for the device.
12/12/00
*This,
MediaId,
Offset,
BufferSize,
*Buffer
EFI_DISK_IO
BufferSize
is
to the device.
Version 1.02
Need help?
Do you have a question about the Extensible Firmware Interface and is the answer not in the manual?