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

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SmmServicesTableLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 
BOOLEAN EFIAPI InSmm (VOID)
 

Variables

EFI_SMM_SYSTEM_TABLE2gSmst = NULL
 

Detailed Description

SMM Services Table Library.

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

Definition in file SmmServicesTableLib.c.

Function Documentation

◆ InSmm()

BOOLEAN EFIAPI InSmm ( VOID  )

This function allows the caller to determine if the driver is executing in System Management Mode(SMM).

This function returns TRUE if the driver is executing in SMM and FALSE if the driver is not executing in SMM.

Return values
TRUEThe driver is executing in System Management Mode (SMM).
FALSEThe driver is not executing in System Management Mode (SMM).

Definition at line 71 of file SmmServicesTableLib.c.

◆ SmmServicesTableLibConstructor()

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

The constructor function caches the pointer of SMM Services Table.

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 27 of file SmmServicesTableLib.c.

Variable Documentation

◆ gSmst

Cache pointer to the SMM Services Table

Definition at line 14 of file SmmServicesTableLib.c.