Extensible Firmware Interface Specification
190 12/12/00 Version 1.02
10.2 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 Section 10.2.1.
Close Closes the current file handle. See Section 10.2.2.
Delete Deletes a file. See Section 10.2.3.
Read Reads bytes from a file. See Section 10.2.4.
Write Writes bytes to a file. See Section 10.2.5.
GetPosition Returns the current file position. See Section 10.2.7.
SetPosition Sets the current file position. See Section 10.2.6.
GetInfo Gets the requested file or volume information. See Section 10.2.8.
SetInfo Sets the requested file information. See Section 10.2.9.
Flush Flushes all modified data associated with the file to the device. See
Section 10.2.10.