/dev/sda to ata_host

Com Developer comdeveloper at yahoo.com
Mon Aug 19 18:41:15 EDT 2013


Hello List,


Is there any way to reverse map device name  /dev/sda to a the ata_host structure the drive is attached to?

I can go with a misc driver and register ata_host at AHCI  detectation time, but I would like to get ata_host pointer 
anytime I load my module.


Thanks

Cam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130819/56caab4d/attachment.html 


More information about the Kernelnewbies mailing list