EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions | Variables

MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.c File Reference

#include <PiSmm.h>
#include <Protocol/SmmBase2.h>
#include <Library/SmmServicesTableLib.h>
#include <Library/DebugLib.h>

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
EFI_SMM_BASE2_PROTOCOLmInternalSmmBase2 = NULL

Detailed Description

SMM Services Table Library.

Copyright (c) 2009 - 2010, Intel Corporation. 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 SmmServicesTableLib.c.


Function Documentation

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

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


Variable Documentation

Cache pointer to the SMM Services Table

Definition at line 20 of file SmmServicesTableLib.c.

Definition at line 21 of file SmmServicesTableLib.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines