Specifications
Version 2.0
41
EFI_SHELL_PROTOCOL.OpenRoot()
Summary
Opens the root directory of a device.
Prototype
typedef
EFI_STATUS
(EFIAPI EFI_SHELL_OPEN_ROOT)(
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
OUT EFI_FILE_HANDLE *FileHandle
);
Parameters
DevicePath
Points to the device path corresponding to the device where the
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL is installed.
FileHandle
On exit, points to the file handle corresponding to the root directory on the
device.
Description
This function opens the root directory of a device and returns a file handle to it.
Status Codes Returned
EFI_SUCCESS Root opened successfully.
EFI_NOT_FOUND EFI_SIMPLE_FILE_SYSTEM could not be found or the root directory
could not be opened.
EFI_VOLUME_CORRUPTED The data structures in the volume were corrupted.
EFI_DEVICE_ERROR The device had an error










