27.2.1 LoadFile() Implementation

The singular function LoadFile() of this protocol causes the driver to load the specified file from media into a buffer in system memory without the overlying layers knowing anything about the media that the file is stored on.

  • Verify that the FilePath represents a file accessible by this device.

  • Verify that the file specified by FilePath exists. If it does not exist, check BootPolicy to see if inexact FilePath is allowed.

  • Verify that Buffer is large enough to return the entire file by examining

BufferSize parameter. If not large enough, place correct size in BufferSize and return EFI_BUFFER_TOO_SMALL.