I was looking into the IO path of the linux kernel, and towards the bottom in the function scsi_dispatch_cmd()
, the driver code is invoked,
rtn = host->hostt->queuecommand(host, cmd);
So, for my block device like /dev/sda/
, is there a way to find out which hosst
or scsi_host_template
it is using. I want to check which function queuecommand
is pointing to..