4 efi_file protocol, Efi_file protocol, File_handle – Intel Extensible Firmware Interface User Manual
Page 380: Type, Efi_file, Proto

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
function description.
Close
Closes the current file handle. See the
function description.
Delete
Deletes a file. See the
function description.
Read
Reads bytes from a file. See the
function description.
Write
Writes bytes to a file. See the
function description.
GetPosition
Returns the current file position. See the
function
description.