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

Method SaveParametersCheck

cpp/devices/mode_page_device.cpp:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void ModePageDevice::SaveParametersCheck(int length) const
136{
137 if (!SupportsSaveParameters() && (GetController()->GetCmdByte(1) & 0x01)) {
138 throw scsi_exception(sense_key::illegal_request, asc::invalid_field_in_cdb);
139 }
140
141 GetController()->SetLength(length);
142
143 EnterDataOutPhase();
144}

Callers

nothing calls this directly

Calls 3

scsi_exceptionClass · 0.85
GetCmdByteMethod · 0.80
SetLengthMethod · 0.80

Tested by

no test coverage detected