MCPcopy Create free account
hub / github.com/actuallyaridan/linux-devmgmt / isValidModuleName

Function isValidModuleName

src/model/DeviceUtils.h:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26inline bool isValidModuleName(const QString &name) {
27 static const QRegularExpression kRe("^[a-zA-Z0-9_-]+$");
28 return !name.isEmpty() && kRe.match(name).hasMatch();
29}
30
31inline bool isSafeToDisable(const QString &driver) {
32 static const QSet<QString> blocked{

Callers 3

setModuleBlacklistedFunction · 0.85
dkmsRemoveFunction · 0.85
DriverDetailsDialogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected