PCD_PROTOCOL.CallbackOnSet()
Summary
Specifies a function to be called anytime the value of a designated token is changed.
Prototype
typedef
EFI_STATUS
(EFIAPI *PCD_PROTOCOL_CALLBACK_ON_SET) (
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 to monitor.
CallBackFunction
The function prototype called when the value associated with the
CallBackToken
is set.
Related Definitions
typedef
VOID
(EFIAPI *PCD_PROTOCOL_CALLBACK) (
IN EFI_GUID *Guid, OPTIONAL
IN UINTN CallBackToken,
IN VOID *TokenData,
IN UINTN TokenDataSize
);
Description
Specifies a function to be called anytime the value of a designated token is changed.
Status Codes Returned
Status Code | Description |
---|---|
EFI_SUCCESS |
The PCD service has successfully established a call event for the CallBackToken requested. |
EFI_NOT_FOUND |
The PCD service could not find the referenced token number. |