![Intel Extensible Firmware Interface Specification Download Page 216](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117216.webp)
Extensible Firmware Interface Specification
198
12/12/00
Version 1.02
10.2.5 EFI_FILE.Write()
Summary
Writes data to a file.
EFI_STATUS
(EFIAPI *EFI_FILE_WRITE) (
IN EFI_FILE
*This,
IN OUT UINTN
*BufferSize,
IN VOID
*Buffer
);
Parameters
This
A pointer to the
EFI_FILE
instance that is the file handle to write data
to. Type
EFI_FILE
is defined in Section 10.2.
BufferSize
On input, the size of the
Buffer
. On output, the amount of data
actually written. In both cases, the size is measured in bytes.
Buffer
The buffer of data to write.
Description
The
Write()
function writes the specified number of bytes to the file at the current file position.
The current file position is advanced the actual number of bytes written, which is returned in
BufferSize
. Partial writes only occur when there has been a data error during the write attempt
(such as “file space full”). The file is automatically grown to hold the data if required.
Direct writes to opened directories are not supported.
Status Codes Returned
EFI_SUCCESS
The data was written.
EFI_UNSUPPORT
Writes to open directory files are not supported.
EFI_NO_MEDIA
The device has no medium.
EFI_DEVICE_ERROR
The device reported an error.
EFI_VOLUME_CORRUPTED
The file system structures are corrupted.
EFI_WRITE_PROTECTED
The file or medium is write protected.
EFI_ACCESS_DENIED
The file was opened read only.
EFI_VOLUME_FULL
The volume is full.
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...