MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / ProcessOnController

Method ProcessOnController

cpp/controllers/controller_manager.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67AbstractController::piscsi_shutdown_mode ControllerManager::ProcessOnController(int id_data) const
68{
69 if (const auto& it = ranges::find_if(controllers, [&] (const auto& c) { return (id_data & (1 << c.first)); } );
70 it != controllers.end()) {
71 (*it).second->ProcessOnController(id_data);
72
73 return (*it).second->GetShutdownMode();
74 }
75
76 return AbstractController::piscsi_shutdown_mode::NONE;
77}
78
79shared_ptr<AbstractController> ControllerManager::FindController(int target_id) const
80{

Callers 2

TESTFunction · 0.45
ProcessMethod · 0.45

Calls 1

GetShutdownModeMethod · 0.80

Tested by 1

TESTFunction · 0.36