Linuxのデバイスドライバーのリンクはデバイスの番号(lspci -nの値)からリンクされる
例えば
ISAのLANカード Ethernet controller: 3Com Corporation 3c590 10BaseT
#lspci -v
からEthernet 3Comで該当するの値は
00:09.0 Ethernet controller: 3Com Corporation 3c590 10BaseT [Vortex]
Flags: bus master, medium devsel, latency 248, IRQ 17
I/O ports at b000 [size=32]
[virtual] Expansion ROM at 30000000 [disabled] [size=64K]
ここでの注目は左の「00:09.0」
#lspci -n
の値は
00:00.0 0600: 8086:7190 (rev 02)
00:01.0 0604: 8086:7191 (rev 02)
00:04.0 0601: 8086:7110 (rev 02)
00:04.1 0101: 8086:7111 (rev 01)
00:04.2 0c03: 8086:7112 (rev 01)
00:04.3 0680: 8086:7113 (rev 02)
00:09.0 0200: 10b7:5900
00:0b.0 0401: 125d:1969 (rev 02)
00:0c.0 0100: 1000:000f (rev 03)
01:00.0 0300: 1002:5157
この中で該当する00:09.0 0200: 10b7:5900の最後「10b7:5900」を
/lib/modules/カーネル番号/modules.alias内でで検索すると
alias pci:v000010B7d00005900sv*sd*bc*sc*i* 3c59x
が出てくる。
これによりドライバー3c59xがロードされる。
#lsmod | grep 3c59x
3c59x 46888 0
mii 9472 1 3c59x
で確認できる。

0