|
RDFU
1.0
|
Support for the EVENT scanner which runs periodically. More...
#include "EfiScannerHeaders.h"
Go to the source code of this file.
Macros | |
| #define | MAX_NEW_NOTIFY_FUNCTIONS 100 |
Functions | |
| BOOLEAN | IsOnNewEventNotifyFunctionList (C_PTR NotifyFunction) |
| __inline VOID | AddNewEventNotifyFunction (C_PTR NotifyFunction) |
| VOID EFIAPI | NotifyEventScannerTimer (EFI_EVENT EventT, VOID *Context) |
| EFI_STATUS | InstallEventScanner (CALLBACK_EVENTSCANNER UserCallback) |
| EFI_STATUS | UnInstallEventScanner (VOID) |
Variables | |
| event_entry_list * | gEventList = 0 |
| EFI_EVENT | gEventScannerEvent = 0 |
| CALLBACK_EVENTSCANNER | gUserEventScannerCallback = 0 |
| C_PTR | NewEventNotifyFunctions [MAX_NEW_NOTIFY_FUNCTIONS] = {0} |
| UINTN | NumOfNewEventNotifyFunctions = 0 |
Support for the EVENT scanner which runs periodically.
Definition in file EventsScanner.c.
| #define MAX_NEW_NOTIFY_FUNCTIONS 100 |
following table will hold all "new notify functions" detected by the scanner (performance optimization)
Definition at line 30 of file EventsScanner.c.
Referenced by AddNewEventNotifyFunction().
| __inline VOID AddNewEventNotifyFunction | ( | C_PTR | NotifyFunction | ) |
Definition at line 45 of file EventsScanner.c.
References MAX_NEW_NOTIFY_FUNCTIONS, NewEventNotifyFunctions, and NumOfNewEventNotifyFunctions.
Referenced by NotifyEventScannerTimer().

| EFI_STATUS InstallEventScanner | ( | CALLBACK_EVENTSCANNER | UserCallback | ) |
Function installs EFI timer which checks the events for changes
| UserCallback | Optional address to user function which will be executed when new event will be found. |
| EFI_SUCCESS | On success |
| EFI_ERROR* | On error |
Definition at line 125 of file EventsScanner.c.
References EFI_STATUS(), EFI_TPL_NOTIFY, GetAllEvents(), gEventScannerEvent, gUserEventScannerCallback, LogFullAscii(), MemZero(), NewEventNotifyFunctions, NotifyEventScannerTimer(), NumOfNewEventNotifyFunctions, and SAMPLE_INTERVAL.
Referenced by DrawBoxAndMenu(), and TestDumpHandles().


| BOOLEAN IsOnNewEventNotifyFunctionList | ( | C_PTR | NotifyFunction | ) |
Definition at line 35 of file EventsScanner.c.
References NewEventNotifyFunctions, and NumOfNewEventNotifyFunctions.
Referenced by NotifyEventScannerTimer().

| VOID EFIAPI NotifyEventScannerTimer | ( | EFI_EVENT | EventT, |
| VOID * | Context | ||
| ) |
Scanning routine (runs periodically). Function checks for new events (events that are not found in the previously gathered event list). If such routine is found it is logged to the log file. Additionally if user callback was specified it is executed as well.
| NONE |
Definition at line 67 of file EventsScanner.c.
References AddNewEventNotifyFunction(), EVENT_SIGNATURE, EVENT_TYPE_BUFF_SIZE, FindEventByAddr(), GetEventTypeStringAscii(), gEventSignalQueueAddr, gUserEventScannerCallback, IsOnNewEventNotifyFunctionList(), LogFileAscii(), IEVENT::NotifyFunction, NumOfNewEventNotifyFunctions, and IEVENT::Type.
Referenced by InstallEventScanner().


| EFI_STATUS UnInstallEventScanner | ( | VOID | ) |
Function uninstalls EFI timer which checks the events for changes
| EFI_SUCCESS | On success |
| EFI_ERROR* | On error |
Definition at line 188 of file EventsScanner.c.
References FreeEvents(), gEventScannerEvent, and LogFullAscii().

| event_entry_list* gEventList = 0 |
Definition at line 20 of file EventsScanner.c.
| EFI_EVENT gEventScannerEvent = 0 |
Definition at line 21 of file EventsScanner.c.
Referenced by InstallEventScanner(), and UnInstallEventScanner().
| CALLBACK_EVENTSCANNER gUserEventScannerCallback = 0 |
Definition at line 22 of file EventsScanner.c.
Referenced by InstallEventScanner(), and NotifyEventScannerTimer().
| C_PTR NewEventNotifyFunctions[MAX_NEW_NOTIFY_FUNCTIONS] = {0} |
Definition at line 31 of file EventsScanner.c.
Referenced by AddNewEventNotifyFunction(), InstallEventScanner(), and IsOnNewEventNotifyFunctionList().
| UINTN NumOfNewEventNotifyFunctions = 0 |
Definition at line 32 of file EventsScanner.c.
Referenced by AddNewEventNotifyFunction(), InstallEventScanner(), IsOnNewEventNotifyFunctionList(), and NotifyEventScannerTimer().