For one of my applications, I have to understand the the SATA device driver flow. As per my understanding, SATA device driver should be there in the Linux kernel tree. I have referred how to find the driver module associated with a device on Linux to find the device driver for the SATA device.
$ readlink /sys/block/sda/device/driver ../../../../../../../bus/scsi/d
I have go to the above location but haven't found a device driver file.
usr@usr:/sys/bus/scsi/drivers/sd$ ll
total 0
drwxr-xr-x 2 root root 0 Dec 9 17:00 ./
drwxr-xr-x 4 root root 0 Dec 9 17:00 ../
lrwxrwxrwx 1 root root 0 Dec 9 17:47 2:0:1:0 -> ../../../../devices/pci0000:00/0000:00:1f.2/ata3/host2/target2:0:1/2:0:1:0/
--w------- 1 root root 4096 Dec 9 17:47 bind
--w------- 1 root root 4096 Dec 9 17:47 uevent
--w------- 1 root root 4096 Dec 9 17:47 unbind
usr@usr:/sys/bus/scsi/drivers/sd$
Please suggest how can I see the device driver which was actually load for SATA hard drive on my system.
lsmod
. What distribution and kernel, please?sg
(tldp.org/HOWTO/SCSI-2.4-HOWTO/sg.html), but just do a search for "moulestring linux kernel module" for possible likely strings.