Hi. I'm currently making a driver for recording the addresses and lengths of I/O request happening in the system.
I made a driver that operates below storage class driver and above storage port driver, so that it can filter SRBs.
This is the CDB of the SCSI_REQUEST_BLOCK I got for SCSIOP_READ. Apparently, I found the length of the I/O, but not the address.
Should I use another method, other than relying on CDB?
So you mean to say that the opcode, not the Function member of the SRB, should be reference in order to filter read and write operations?
Like pCdb->CDB10.OperationCode member in the code you provided?