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

Method FindController

cpp/controllers/controller_manager.cpp:79–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79shared_ptr<AbstractController> ControllerManager::FindController(int target_id) const
80{
81 const auto& it = controllers.find(target_id);
82 return it == controllers.end() ? nullptr : it->second;
83}
84
85bool ControllerManager::HasController(int target_id) const {
86 return controllers.contains(target_id);

Callers 3

TESTFunction · 0.80
TESTFunction · 0.80
DetachMethod · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64