# GenericElog

| Index | Module | Size | Phase |
|-------|--------|------|-------|
| 119 | GenericElog | 7,680 bytes (PE32+) | DXE_RUNTIME_DRIVER |

## Overview

Generic Event Log driver that provides a unified event logging interface by dispatching read/write/status operations to registered redirect protocol handlers. Installs the `EFI_GENERIC_ELOG_PROTOCOL` and enumerates all handles publishing `EFI_REDIR_ELOG_PROTOCOL` to support multiple backend event log implementations.

## Key Functions

- **GenericElogEntryPoint** -- Module entry, globals save, event creation
- **ElogDriverInit** -- Stage 1: save globals, discover HOBs, create events
- **ElogDriverMain** -- Stage 2: allocate local structure, install protocol, enumerate redirects
- **GenericElogWriteEvent** -- Dispatch write to redirect handlers
- **GenericElogReadEvent** -- Dispatch read to redirect handlers
- **GenericElogGetStatus** -- Dispatch status query to redirect handlers
- **GenericElogSetStatus** -- Dispatch status set to redirect handlers
- **EnumerateRedirectProtocols** -- Discover all redirect protocol handles
- **OnExitBootServices / OnVirtualAddressChange** -- Runtime event handlers

## Dependencies

- `gEfiGenericElogProtocolGuid` -- Installed generic event log protocol
- `gEfiRedirElogProtocolGuid` -- Backend redirect protocol (multiple instances)

## Platform

Intel Purley (Xeon Scalable). x86-64 UEFI Runtime Driver.