Extensible Firmware Interface Specification
10.2.5 EFI_FILE.Write()
Summary
Writes data to a file.
EFI_STATUS
(EFIAPI *EFI_FILE_WRITE) (
IN EFI_FILE
IN OUT UINTN
IN VOID
);
Parameters
This
BufferSize
Buffer
Description
The
function writes the specified number of bytes to the file at the current file position.
Write()
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
EFI_UNSUPPORT
EFI_NO_MEDIA
EFI_DEVICE_ERROR
EFI_VOLUME_CORRUPTED
EFI_WRITE_PROTECTED
EFI_ACCESS_DENIED
EFI_VOLUME_FULL
198
*This,
*BufferSize,
*Buffer
A pointer to the
EFI_FILE
to. Type
is defined in Section 10.2.
EFI_FILE
On input, the size of the Buffer. On output, the amount of data
actually written. In both cases, the size is measured in bytes.
The buffer of data to write.
The data was written.
Writes to open directory files are not supported.
The device has no medium.
The device reported an error.
The file system structures are corrupted.
The file or medium is write protected.
The file was opened read only.
The volume is full.
12/12/00
instance that is the file handle to write data
Version 1.02
Need help?
Do you have a question about the Extensible Firmware Interface and is the answer not in the manual?