Extensible Firmware Interface Specification
11-20 12/01/02 Version 1.10
11.4 EFI_FILE Protocol
The protocol and functions described in this section support access to EFI-supported file systems.
EFI_FILE Protocol
Summary
Provides file based access to supported file systems.
Revision Number
#define EFI_FILE_REVISION 0x00010000
Protocol Interface Structure
typedef struct _EFI_FILE {
UINT64 Revision;
EFI_FILE_OPEN Open;
EFI_FILE_CLOSE Close;
EFI_FILE_DELETE Delete;
EFI_FILE_READ Read;
EFI_FILE_WRITE Write;
EFI_FILE_GET_POSITION GetPosition;
EFI_FILE_SET_POSITION SetPosition;
EFI_FILE_GET_INFO GetInfo;
EFI_FILE_SET_INFO SetInfo;
EFI_FILE_FLUSH Flush;
} EFI_FILE;
Parameters
Revision The version of the EFI_FILE interface. The version specified by this
specification is 0x00010000. Future versions are required to be
backward compatible to version 1.0.
Open Opens or creates a new file. See the Open()
function description.
Close Closes the current file handle. See the Close()
function description.
Delete Deletes a file. See the Delete()
function description.
Read Reads bytes from a file. See the Read()
function description.
Write Writes bytes to a file. See the Write()
function description.
GetPosition Returns the current file position. See the GetPosition()
function
description.