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

Method Process

cpp/controllers/scsi_controller.cpp:50–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool ScsiController::Process(int id)
51{
52 GetBus().Acquire();
53
54 if (GetBus().GetRST()) {
55 LogWarn("RESET signal received!");
56
57 Reset();
58
59 return false;
60 }
61
62 initiator_id = id;
63
64 try {
65 ProcessPhase();
66 }
67 catch(const scsi_exception&) {
68 LogError("Unhandled SCSI error, resetting controller and bus and entering bus free phase");
69
70 Reset();
71
72 BusFree();
73 }
74
75 return !IsBusFree();
76}
77
78void ScsiController::BusFree()
79{

Callers

nothing calls this directly

Calls 2

AcquireMethod · 0.45
GetRSTMethod · 0.45

Tested by

no test coverage detected