Reference

XkbLockModifiers(3) on Linux

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

Locks and unlocks any of the eight real keyboard modifiers

XkbLockModifiers(3) on Linux now