OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
LocateFileSystem.c File Reference
#include <Uefi.h>
#include <Guid/FileInfo.h>
#include <Protocol/SimpleFileSystem.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/OcDebugLogLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DevicePathLib.h>
#include <Library/OcDevicePathLib.h>
#include <Library/OcFileLib.h>
#include <Library/UefiBootServicesTableLib.h>

Go to the source code of this file.

Functions

EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * OcLocateFileSystem (IN EFI_HANDLE DeviceHandle OPTIONAL, IN EFI_DEVICE_PATH_PROTOCOL *FilePath OPTIONAL)
 
EFI_FILE_PROTOCOL * OcLocateRootVolume (IN EFI_HANDLE DeviceHandle OPTIONAL, IN EFI_DEVICE_PATH_PROTOCOL *FilePath OPTIONAL)
 
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * OcLocateFileSystemByGuid (IN CONST GUID *Guid)
 

Detailed Description

Copyright (C) 2019, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file LocateFileSystem.c.

Function Documentation

◆ OcLocateFileSystem()

EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * OcLocateFileSystem ( IN EFI_HANDLE DeviceHandle OPTIONAL,
IN EFI_DEVICE_PATH_PROTOCOL *FilePath OPTIONAL )

Locate file system from Device handle or path.

Parameters
[in]DeviceHandleDevice handle.
[in]FilePathDevice path.
Return values
simplefile system protocol or NULL.

Definition at line 29 of file LocateFileSystem.c.

◆ OcLocateFileSystemByGuid()

EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * OcLocateFileSystemByGuid ( IN CONST GUID * Guid)

Locate file system from GUID.

Parameters
[in]GuidGUID of the volume to locate.
Return values
simplefile system protocol or NULL.

Definition at line 104 of file LocateFileSystem.c.

◆ OcLocateRootVolume()

EFI_FILE_PROTOCOL * OcLocateRootVolume ( IN EFI_HANDLE DeviceHandle OPTIONAL,
IN EFI_DEVICE_PATH_PROTOCOL *FilePath OPTIONAL )

Locate root volume from Device handle or path.

Parameters
[in]DeviceHandleDevice handle.
[in]FilePathDevice path.
Return values
openedfile protocol or NULL.

Definition at line 81 of file LocateFileSystem.c.