![Intel Extensible Firmware Interface Specification Download Page 204](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117204.webp)
Extensible Firmware Interface Specification
186
12/12/00
Version 1.02
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
*This,
IN UINT32
MediaId,
IN UINT64
Offset,
IN UNITN
BufferSize,
IN VOID
*Buffer
);
Parameters
This
Indicates a pointer to the calling context. Type
EFI_DISK_IO
is
defined in Section 9.1.
MediaId
Id of the medium to be written.
Offset
The starting byte offset on the logical block I/O device to write.
BufferSize
The size in bytes of
Buffer
. The number of bytes to write to the
device.
Buffer
A pointer to the buffer containing the data to be written.
Description
The
WriteDisk()
function writes the number of bytes specified by
BufferSize
to the device.
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
MediaId
is not the id of the medium currently in the device, the
function returns
EFI_MEDIA_CHANGED
.
Status Codes Returned
EFI_SUCCESS
The data was written correctly to the device.
EFI_WRITE_PROTECTED
The device cannot be written to.
EFI_NO_MEDIA
There is no medium in the device.
EFI_MEDIA_CHANGED
The
MediaId
is not for the current medium.
EFI_DEVICE_ERROR
The device reported an error while performing the write operation.
EFI_INVALID_PARAMETER
The write request contains device addresses that are not valid for the device.
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...