TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | InternalLocateProtocol (IN EFI_GUID *Protocol, IN VOID *Registration OPTIONAL, OUT VOID **Interface) |
Abstraction layer for SMM service table used by SMM ReportStatusCodeLib.
Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ReportStatusCodeLibTraditional.c.
EFI_STATUS InternalLocateProtocol | ( | IN EFI_GUID * | Protocol, |
IN VOID *Registration | OPTIONAL, | ||
OUT VOID ** | Interface | ||
) |
Returns the first protocol instance that matches the given protocol.
[in] | Protocol | Provides the protocol to search for. |
[in] | Registration | Optional registration key returned from RegisterProtocolNotify(). |
[out] | Interface | On return, a pointer to the first interface that matches Protocol and Registration. |
EFI_SUCCESS | A protocol instance matching Protocol was found and returned in Interface. |
EFI_NOT_FOUND | No protocol instances were found that match Protocol and Registration. |
EFI_INVALID_PARAMETER | Interface is NULL. Protocol is NULL. |
Definition at line 31 of file ReportStatusCodeLibTraditional.c.