TianoCore EDK2 master
Loading...
Searching...
No Matches
Notify.c File Reference
#include "PiSmmCore.h"

Go to the source code of this file.

Functions

VOID SmmNotifyProtocol (IN PROTOCOL_INTERFACE *Prot)
 
PROTOCOL_INTERFACE * SmmRemoveInterfaceFromProtocol (IN IHANDLE *Handle, IN EFI_GUID *Protocol, IN VOID *Interface)
 
EFI_STATUS EFIAPI SmmRegisterProtocolNotify (IN CONST EFI_GUID *Protocol, IN EFI_SMM_NOTIFY_FN Function, OUT VOID **Registration)
 

Detailed Description

Support functions for UEFI protocol notification infrastructure.

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

Definition in file Notify.c.

Function Documentation

◆ SmmNotifyProtocol()

VOID SmmNotifyProtocol ( IN PROTOCOL_INTERFACE *  Prot)

Signal event for every protocol in protocol entry.

Parameters
ProtProtocol interface

Definition at line 18 of file Notify.c.

◆ SmmRegisterProtocolNotify()

EFI_STATUS EFIAPI SmmRegisterProtocolNotify ( IN CONST EFI_GUID *  Protocol,
IN EFI_SMM_NOTIFY_FN  Function,
OUT VOID **  Registration 
)

Add a new protocol notification record for the request protocol.

Parameters
ProtocolThe requested protocol to add the notify registration
FunctionPoints to the notification function
RegistrationReturns the registration record
Return values
EFI_SUCCESSSuccessfully returned the registration record that has been added or unhooked
EFI_INVALID_PARAMETERProtocol is NULL or Registration is NULL
EFI_OUT_OF_RESOURCESNot enough memory resource to finish the request
EFI_NOT_FOUNDIf the registration is not found when Function == NULL

Definition at line 96 of file Notify.c.

◆ SmmRemoveInterfaceFromProtocol()

PROTOCOL_INTERFACE * SmmRemoveInterfaceFromProtocol ( IN IHANDLE *  Handle,
IN EFI_GUID *  Protocol,
IN VOID *  Interface 
)

Removes Protocol from the protocol list (but not the handle list).

Parameters
HandleThe handle to remove protocol on.
ProtocolGUID of the protocol to be moved
InterfaceThe interface of the protocol
Returns
Protocol Entry

Definition at line 44 of file Notify.c.