Hutterer: udev-hid-bpf: quickstart tooling to fix your HID devices with eBPF
Peter Hutterer announcesudev-hid-bpf, a tool to facilitate the loading of BPF programs thatmake human-input devices work correctly.
eBPF was originally written for network packet filters but as ofkernel v6.3 and thanks to Benjamin, we have BPF in the HIDsubsystem. HID actually lends itself really well to BPF because,well, we have a byte array and to fix our devices we need to docomplicated things like "toggle that bit to zero" or "swap thosetwo values".
See this article for more information onthe BPF-HID mechanism.