On Sat, 4 Nov 2023, tlaro...@kergis.com wrote:

No...: this is a break of existing. Trailing `*' selects STARred devices
(I'm not the inventor of this). So `*' can not be used as a joker ;-)


You can allow escapes for those:

uc> disable i915drmkms\*     # exact match STARred
uc> disable *kms\*           # only STARed `*kms'


But this breaks existing...


Fine. You can introduce the notion of flags.
For example `-p' for pattern:

uc> disable i915drmkms*              # std. starred device
uc> disable -p *drm*         # disable using pattern

You can also add, let's say, a `-g' group flag:

uc> list -g                  # list all "groups"
uc> list -g drmkms           # list devices in group drmkms
uc> disable -g drmkms                # disable group drmkms

-RVP

Reply via email to