void Hwmon::start() { for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) { if (!counter->isEnabled()) { continue; } counter->read(); } }
void Hwmon::read(Buffer * const buffer) { for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) { if (!counter->isEnabled()) { continue; } buffer->event(counter->getKey(), counter->read()); } }
bool Hwmon::countersEnabled() const { for (HwmonCounter * counter = counters; counter != NULL; counter = counter->getNext()) { if (counter->isEnabled()) { return true; } } return false; }