XkbGetDeviceInfo(3) on Linux
The text da2a325b90f6, as Debian 5.0 (Lenny) 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