Linux?д??????????????
???????????? ???????[ 2012/11/12 13:45:34 ] ????????
???????SCSI?????????????PCI?豸????????????????????????е?λ????????????
?1 scis host??device????????????е?λ??
?????????????????????PCI?????????scsi host adapter?????pci???????????pci????????????????????????pci device??PDO???????????????????pci device???????????????????linux???У?????pci bus?????????????????????????з??????????????????????????scsi host??marwell???豸??????????????marwell????scsi host driver??????????á?????scsi host???????pci??????????scsi host driver????probe????????probe??????scsi host driver??????????????pci-driver????Linux???????????????????????·??????scsi host?????probe?????л?????scsi host??????ж????????????????scsi_host_alloc???????????scsi host?????????scsi middle level???????scsi_scan_host???????scsi host adapter???????????scsi?????
???????scsi host adapter??????ж??channel?????channel??????scsi????????scsi????????й???????????е?SATA??SAS??P2P???????????????????????????????????scsi middle level??????????????????????scsi host?????????channel???????????????channel??????spec?????scsi bus??????????16??scsi target??????scsi??????????????target?????scsi target???????????????????????LUN????????????豸??????????????LUN????0??
????Scsi host????????????????????α???????????
For (channel = 0; channel
/* ????????????????????е??豸??????? */
…
For (id=0; id
/* ?????????е????ID????豸??????? */
...
For (lun=1; lun
/* ?????ID????豸?????LUN??????? */
...
}
}
}
??????????????????????????????п?????????·????????scsi device??????????host_id : channel_id : target_id : lun_id
???????У?host_id?????????????????PCI????????????????????????????host_id????????????????????????????????scsi host(PCI device)??????host_id????????仯?????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11