src/devices/bin/driver_manager/coordinator.cc
// Drivers added during system scan (from the dedicated thread)
// are added to system_drivers for bulk processing once
// CTL_ADD_SYSTEM is sent.
//
// TODO: fancier priority management
Drivers added during system scan (from the dedicated thread)
are added to system_drivers for bulk processing once
CTL_ADD_SYSTEM is sent.

fancier priority management
Drivers added during system scan ( from the dedicated thread ) are added to system_drivers for bulk processing once CTL_ADD_SYSTEM is sent . fancier priority management
void Coordinator::DriverAddedSys(Driver* drv, const char* version) {
  auto driver = ValidateDriver(std::unique_ptr<Driver>(drv));
  if (!driver) {
    return;
  }
  LOGF(INFO, "Adding system driver '%s' '%s'", driver->name.data(), driver->libname.data());
  if (load_vmo(driver->libname.data(), &driver->dso_vmo)) {
    LOGF(ERROR, "System driver '%s' '%s' could not cache DSO", driver->name.data(),
         driver->libname.data());
  }
  if (version[0] == '*') {
    system_drivers_.push_back(std::move(driver));
  } else {
    system_drivers_.push_front(std::move(driver));
  }
}
void Coordinator :: DriverAddedSys ( Driver * drv , const char * version ) { auto driver = ValidateDriver ( std :: unique_ptr < Driver > ( drv ) ) ; if ( ! driver ) { return ; } LOGF ( INFO , " " , driver -> name . data ( ) , driver -> libname . data ( ) ) ; if ( load_vmo ( driver -> libname . data ( ) , & driver -> dso_vmo ) ) { LOGF ( ERROR , " " , driver -> name . data ( ) , driver -> libname . data ( ) ) ; } if ( version [ 0 ] == ' ' ) { system_drivers_ . push_back ( std :: move ( driver ) ) ; } else { system_drivers_ . push_front ( std :: move ( driver ) ) ; } }
Drivers added during system scan (from the dedicated thread)
are added to system_drivers for bulk processing once
CTL_ADD_SYSTEM is sent.
Drivers added during system scan ( from the dedicated thread ) are added to system_drivers for bulk processing once CTL_ADD_SYSTEM is sent .
// de-prioritize drivers that are "fallback"