XkbGetDeviceInfo(3) on Linux
The text f3765578d4c5, as Debian 11 (Bullseye) shipped it.
Determine whether the X server allows Xkb access to particular capabilities of input devices other than the core X keyboard, or to determine the status of indicator maps, indicator names or button actions on a non-KeyClass extension device