Reference

XkbKeysymToModifiers(3) on Linux

The text c01d23b8e0f3, as Debian 8 (Jessie) shipped it.

Finds the set of modifiers bound to a particular keysym on the core keyboard

XkbKeysymToModifiers(3) on Linux now