PCD_PROTOCOL.CancelCallback()
Summary
Cancels a previously set callback function for a particular PCD token number.
Prototype
typedef
EFI_STATUS
(EFIAPI *PCD_PROTOCOL_CANCEL_CALLBACK) (
IN CONST EFI_GUID *Guid, OPTIONAL
IN UINTN CallBackToken,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
);
Parameters
Guid
The 128-bit unique value that designates which namespace to monitor. If NULL,
use the standard platform namespace.
CallBackToken
The PCD token number for which to cancel monitoring.
CallBackFunction
The function prototype that was originally passed to the CallBackOnSet
function.
Description
Cancels a callback function that was set through a previous call to the
CallBackOnSet function.
Status Codes Returned
| Status Code | Description |
|---|---|
EFI_SUCCESS |
The PCD service cancelled the call event associated with the CallBackToken. |
EFI_INVALID_PARAMETER |
The PCD service did not match the CallBackFunction to one that is currently being monitored. |
EFI_NOT_FOUND |
The PCD service could not find the requested token number. |