Post · 5 min read· pp. 116–118

REGISTERED_INTERRUPT_CONTROLLER

The REGISTERED_INTERRUPT_CONTROLLER (formally _REGISTERED_INTERRUPT_CONTROLLER) is the HAL’s abstraction of an interrupt controller.

Documentation Status

The REGISTERED_INTERRUPT_CONTROLLER is not documented. Neither is Microsoft known to have ever published a C-language definition in any Windows Driver Kit (WDK).

The practical equivalent of a C-language definition is available as type information in public symbol files for the HAL, starting with Windows 8. The merging of the HAL into the kernel for the 2004 release of 64-bit Windows moves this type information into the public symbols for the kernel.

Exactly why the public symbols have type information for the REGISTERED_INTERRUPT_CONTROLLER is unclear. That it’s unintended is not impossible. When compiling the separate source file, HALSYM.C, to merge type information into the public symbols for the already built HAL, what the compiler counted as this structure’s use is a reference by pointer—but this pointer type is itself unreferenced. This situation can have been produced by as little as the pointer type’s use in an inline routine or just its appearance in the declaration of an internal routine that is in turn called from an inline routine. On the other hand, HALSYM.C can have used the pointer type explicitly, e.g., by defining a variable of this type. A reason to do this would be that the KDEXTS debugger extension’s !gicr_findapending and !ioapic commands depend on having type information for the REGISTERED_INTERRUPT_CONTROLLER. Intention is hard to gauge. It’s not as if either command is documented—at all, let alone as intended to work for those outside Microsoft who are not blessed with access to private symbols.

Variability

For a structure that looks to be used only within the HAL (not that any effort has yet been put into the looking), the REGISTERED_INTERRUPT_CONTROLLER is remarkably stable. The structure has grown, but only because one sub-structure pushes subsequent members ever further along:

VersionSize (x86)Size (x64)
6.2 to 16070xBC0x0148
1703 to 18090xC00x0150
19030xC40x0158
20040xC80x0160

Layout

The sizes in the preceding table and the offsets and definitions in the next are from type information in public symbols as noted above for Windows 8 and higher. Whether the structure even exists in earlier versions is left for another time.

Offset (x86)Offset (x64)DefinitionVersions
0x000x00LIST_ENTRY ListEntry;6.2 and higher
0x080x10PVOID InternalData;6.2 and higher
0x0C0x18ULONG InternalDataSize;6.2 and higher
0x100x20INTERRUPT_FUNCTION_TABLE FunctionTable;6.2 and higher
0x60 (6.2 to 1607); 0x64 (1703 to 1809); 0x68 (1903); 0x6C0xC0 (6.2 to 1607); 0xC8 (1703 to 1809); 0xD0 (1903); 0xD8KNOWN_CONTROLLER_TYPE KnownType;6.2 and higher
0x64 (6.2 to 1607); 0x68 (1703 to 1809); 0x6C (1903); 0x700xC4 (6.2 to 1607); 0xCC (1703 to 1809); 0xD4 (1903); 0xDCULONG Capabilities;6.2 and higher
0x68 (6.2 to 1607); 0x6C (1703 to 1809); 0x70 (1903); 0x740xC8 (6.2 to 1607); 0xD0 (1703 to 1809); 0xD8 (1903); 0xE0ULONG Flags;6.2 and higher
0x6C (6.2 to 1607); 0x70 (1703 to 1809); 0x74 (1903); 0x780xCC (6.2 to 1607); 0xD4 (1703 to 1809); 0xDC (1903); 0xE4ULONG MaxPriority;6.2 and higher
0x70 (6.2 to 1607); 0x74 (1703 to 1809); 0x78 (1903); 0x7C0xD0 (6.2 to 1607); 0xD8 (1703 to 1809); 0xE0 (1903); 0xE8ULONG UnitId;6.2 and higher
0x74 (6.2 to 1607); 0x78 (1703 to 1809); 0x7C (1903); 0x800xD8 (6.2 to 1607); 0xE0 (1703 to 1809); 0xE8 (1903); 0xF0LIST_ENTRY LinesHead;6.2 and higher
0x7C (6.2 to 1607); 0x80 (1703 to 1809); 0x84 (1903); 0x880xE8 (6.2 to 1607); 0xF0 (1703 to 1809); 0xF8 (1903); 0x0100LIST_ENTRY OutputLinesHead;6.2 and higher
0x84 (6.2 to 1607); 0x88 (1703 to 1809); 0x8C (1903); 0x900xF8 (6.2 to 1607); 0x0100 (1703 to 1809); 0x0108 (1903); 0x0110LONG MinLine;6.2 and higher
0x88 (6.2 to 1607); 0x8C (1703 to 1809); 0x90 (1903); 0x940xFC (6.2 to 1607); 0x0104 (1703 to 1809); 0x010C (1903); 0x0114LONG MaxLine;6.2 and higher
0x8C (6.2 to 1607); 0x90 (1703 to 1809); 0x94 (1903); 0x980x0100 (6.2 to 1607); 0x0108 (1703 to 1809); 0x0110 (1903); 0x0118ULONG MaxClusterSize;6.2 and higher
0x90 (6.2 to 1607); 0x94 (1703 to 1809); 0x98 (1903); 0x9C0x0104 (6.2 to 1607); 0x010C (1703 to 1809); 0x0114 (1903); 0x011CULONG MaxClusters;6.2 and higher
0x94 (6.2 to 1607); 0x98 (1703 to 1809); 0x9C (1903); 0xA00x0108 (6.2 to 1607); 0x0110 (1703 to 1809); 0x0118 (1903); 0x0120ULONG InterruptReplayDataSize;6.2 and higher
0x98 (6.2 to 1607); 0x9C (1703 to 1809); 0xA0 (1903); 0xA40x010C (6.2 to 1607); 0x0114 (1703 to 1809); 0x011C (1903); 0x0124INTERRUPT_PROBLEM Problem;6.2 and higher
0x9C (6.2 to 1607); 0xA0 (1703 to 1809); 0xA4 (1903); 0xA80x0110 (6.2 to 1607); 0x0118 (1703 to 1809); 0x0120 (1903); 0x0128NTSTATUS ProblemStatus;6.2 and higher
0xA0 (6.2 to 1607); 0xA4 (1703 to 1809); 0xA8 (1903); 0xAC0x0118 (6.2 to 1607); 0x0120 (1703 to 1809); 0x0128 (1903); 0x0130PCSTR ProblemSourceFile;6.2 and higher
0xA4 (6.2 to 1607); 0xA8 (1703 to 1809); 0xAC (1903); 0xB00x0120 (6.2 to 1607); 0x0128 (1703 to 1809); 0x0130 (1903); 0x0138ULONG ProblemSourceLine;6.2 and higher
0xA8 (6.2 to 1607); 0xAC (1703 to 1809); 0xB0 (1903); 0xB40x0124 (6.2 to 1607); 0x012C (1703 to 1809); 0x0134 (1903); 0x013CULONG CustomProblem;6.2 and higher
0xAC (6.2 to 1607); 0xB0 (1703 to 1809); 0xB4 (1903); 0xB80x0128 (6.2 to 1607); 0x0130 (1703 to 1809); 0x0138 (1903); 0x0140NTSTATUS CustomProblemStatus;6.2 and higher
0xB0 (6.2 to 1607); 0xB4 (1703 to 1809); 0xB8 (1903); 0xBC0x0130 (6.2 to 1607); 0x0138 (1703 to 1809); 0x0140 (1903); 0x0148UNICODE_STRING ResourceId;6.2 and higher
0xB8 (6.2 to 1607); 0xBC (1703 to 1809); 0xC0 (1903); 0xC40x0140 (6.2 to 1607); 0x0148 (1703 to 1809); 0x0150 (1903); 0x0158POHANDLE PowerHandle;6.2 and higher