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

Method loadDisabledModules

src/model/DeviceModel.cpp:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void DeviceModel::loadDisabledModules() {
22 m_disabledModules.clear();
23 QFile f(kModprobeConf);
24 if (!f.open(QIODevice::ReadOnly | QIODevice::Text))
25 return;
26 QTextStream in(&f);
27 while (!in.atEnd()) {
28 QString line = in.readLine().trimmed();
29 if (line.startsWith("blacklist "))
30 m_disabledModules.insert(line.mid(10).trimmed());
31 }
32}
33
34void DeviceModel::setCategories(const QString &hostName,
35 const QVector<DeviceCategory> &categories) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected