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

Method ProcessOnController

cpp/controllers/abstract_controller.cpp:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void AbstractController::ProcessOnController(int id_data)
77{
78 device_logger.SetIdAndLun(GetTargetId(), -1);
79
80 const int initiator_id = ExtractInitiatorId(id_data);
81 if (initiator_id != UNKNOWN_INITIATOR_ID) {
82 LogTrace("++++ Starting processing for initiator ID " + to_string(initiator_id));
83 }
84 else {
85 LogTrace("++++ Starting processing for unknown initiator ID");
86 }
87
88 while (Process(initiator_id)) {
89 // Handle bus phases until the bus is free for the next command
90 }
91}
92
93bool AbstractController::AddDevice(shared_ptr<PrimaryDevice> device)
94{

Callers

nothing calls this directly

Calls 1

SetIdAndLunMethod · 0.45

Tested by

no test coverage detected