TianoCore EDK2 master
Loading...
Searching...
No Matches
BmLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EfiLibDeleteVariable (IN CHAR16 *VarName, IN EFI_GUID *VarGuid)
 
UINTN EfiDevicePathInstanceCount (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
 
UINT16 * EfiLibStrFromDatahub (IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
 

Detailed Description

Utility routines used by boot maintenance modules.

Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file BmLib.c.

Function Documentation

◆ EfiDevicePathInstanceCount()

UINTN EfiDevicePathInstanceCount ( IN EFI_DEVICE_PATH_PROTOCOL DevicePath)

Function is used to determine the number of device path instances that exist in a device path.

Parameters
DevicePathA pointer to a device path data structure.
Returns
This function counts and returns the number of device path instances in DevicePath.

Definition at line 51 of file BmLib.c.

◆ EfiLibDeleteVariable()

EFI_STATUS EfiLibDeleteVariable ( IN CHAR16 *  VarName,
IN EFI_GUID VarGuid 
)

Function deletes the variable specified by VarName and VarGuid.

Parameters
VarNameA Null-terminated Unicode string that is the name of the vendor's variable.
VarGuidA unique identifier for the vendor.
Return values
EFI_SUCCESSThe variable was found and removed
EFI_UNSUPPORTEDThe variable store was inaccessible
EFI_NOT_FOUNDThe variable was not found

Definition at line 25 of file BmLib.c.

◆ EfiLibStrFromDatahub()

UINT16 * EfiLibStrFromDatahub ( IN EFI_DEVICE_PATH_PROTOCOL DevPath)

Get a string from the Data Hub record based on a device path.

Parameters
DevPathThe device Path.
Returns
A string located from the Data Hub records based on the device path.
Return values
NULLIf failed to get the String from Data Hub.

Definition at line 78 of file BmLib.c.