>>>>> "Andras" == Andras Kovacs <akovacs@xxxxxxxxxxxx> writes: >> Thank you. Then I guess I'll find the Paramerer List in the struct >> scsi_data_buffer sdb variable (within struct scsi_cmnd). Will check >> on Monday. Andras> I've looked into it, but struct scsi_data_buffer doesn't contain Andras> a byte array (rather a struct sg_table variable and some Andras> housekeeping vars). So my question is still: where can I find Andras> the Parameter List associated with a particular UNMAP command? You'll have to traverse scatterlist and extract the descriptor from there. You can use scsi_for_each_sg() to walk the list. If you only care about in-kernel discards it's pretty easy since we only issue a single descriptor. If you want to support arbitrary block pc UNMAP commands you'll have to be able to deal with multiple descriptors across multiple scatterlist elements. But the accessor macro makes that easy so I suggest you take that approach. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html