Reference

XkbKeysymToModifiers(3) on Linux

The text 17ab2bd02d5f, as Debian 13 (Trixie) shipped it.

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

XkbKeysymToModifiers(3) on Linux now