OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcBootServicesTableLib.h File Reference
#include <Library/UefiBootServicesTableLib.h>

Go to the source code of this file.

Functions

EFI_STATUS OcRegisterBootServicesProtocol (IN EFI_GUID *ProtocolGuid, IN VOID *ProtocolInstance, IN BOOLEAN Override)
 

Detailed Description

Provides a service to retrieve a pointer to the EFI Boot Services Table. Allows overrides to UEFI protocols. Only available to DXE and UEFI module types.

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

Definition in file OcBootServicesTableLib.h.

Function Documentation

◆ OcRegisterBootServicesProtocol()

EFI_STATUS OcRegisterBootServicesProtocol ( IN EFI_GUID * ProtocolGuid,
IN VOID * ProtocolInstance,
IN BOOLEAN Override )

Provide protocol instance through gBS->LocateProtocol.

Parameters
[in]ProtocolGuidPointer to protocol GUID.
[in]ProtocolInstancePointer to protocol instance.
[in]OverrideOverride protocol instead of fallback when missing.
Return values
EFI_SUCCESSon successful registration.
EFI_OUT_OF_RESOURCESwhen no free slots are available.

Definition at line 250 of file OcBootServicesTableLib.c.