$ show spddl/GoInterruptPolicy
GoInterruptPolicy is a Windows GUI utility for managing interrupt affinity (IRQ affinity) of hardware devices. It enumerates devices through the Windows SetupAPI, reads their current interrupt policy from the registry, and lets users assign interrupts to specific CPU cores, including Intel P-cores/E-cores, AMD CCDs, and NUMA nodes. The practical goal is reducing interrupt latency for real-time workloads such as gaming and audio processing. The code is Windows-only and packaged as a standalone Go executable with an icon, manifest, and version resources.
The LLM identified 3 files worth highlighting for reuse:
Pure calculation module that converts CPU topology data (cores, CCDs, NUMA nodes) into 2D layout coordinates for the GUI. It separates layout math from rendering, making it extractable for any core-grid visualization or topology display tool.
Handles backup and restore of device interrupt policy registry keys before modifications. Demonstrates a safe configuration-change pattern (read -> backup -> write -> rollback) that is reusable in any system tuning or device configuration utility.
Wraps Windows SetupAPI to enumerate devices, query device instance IDs, and open device registry keys for interrupt policy changes. Encapsulates non-trivial Windows system programming behind a small API and could be extracted into a reusable library for device configuration tools.