PCD_PPI.CallbackOnSet()

Summary

Specifies a function to be called anytime the value of a designated token is changed.

Prototype

typedef
EFI_STATUS
(EFIAPI *PCD_PPI_CALL_BACK_ON_SET) (
  IN CONST EFI_GUID    *Guid, OPTIONAL
  IN UINTN             CallBackToken,
  IN PCD_PPI_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 that will be called when the value associated with the CallBackToken is set.

typedef
VOID
(EFIAPI *PCD_PPI_CALLBACK) (
  IN EFI_GUID  *Guid, OPTIONAL,
  IN UINT      CallBackToken,
  IN VOID      *TokenData,
  IN UINTN     TokenDatSize
  );

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.