MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.c File Reference


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 - 2015, 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.


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:
TRUE The driver is executing in System Management Mode (SMM).
FALSE The driver is not executing in System Management Mode (SMM).

References TRUE.

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

The constructor function caches the pointer of SMM Services Table.

Parameters:
ImageHandle The firmware allocated handle for the EFI image.
SystemTable A pointer to the EFI System Table.
Return values:
EFI_SUCCESS The constructor always returns EFI_SUCCESS.

References ASSERT, ASSERT_EFI_ERROR, EFI_SUCCESS, gEfiSmmBase2ProtocolGuid, NULL, and VOID.


Variable Documentation


Generated on Thu Sep 24 23:14:24 2015 for MdePkg[ALL] by  doxygen 1.5.7.1