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

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI UefiBootServicesTableLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_HANDLE gImageHandle = NULL
 
EFI_SYSTEM_TABLEgST = NULL
 
EFI_BOOT_SERVICESgBS = NULL
 

Detailed Description

This library retrieve the EFI_BOOT_SERVICES pointer from EFI system table in library's constructor.

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

Definition in file UefiBootServicesTableLib.c.

Function Documentation

◆ UefiBootServicesTableLibConstructor()

EFI_STATUS EFIAPI UefiBootServicesTableLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The constructor function caches the pointer of Boot Services Table.

The constructor function caches the pointer of Boot Services Table through System Table. It will ASSERT() if the pointer of System Table is NULL. It will ASSERT() if the pointer of Boot Services Table is NULL. It will always return EFI_SUCCESS.

Parameters
ImageHandleThe firmware allocated handle for the EFI image.
SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor always returns EFI_SUCCESS.

Definition at line 35 of file UefiBootServicesTableLib.c.

Variable Documentation

◆ gBS

Cache pointer to the EFI Boot Services Table

Definition at line 17 of file UefiBootServicesTableLib.c.

◆ gImageHandle

EFI_HANDLE gImageHandle = NULL

Cache the Image Handle

Definition at line 15 of file UefiBootServicesTableLib.c.

◆ gST

Cache pointer to the EFI System Table

Definition at line 16 of file UefiBootServicesTableLib.c.