if there are multiple kernel module can drive the same device, what is the rule to choose from them?

Posted by Dyno Fu on Server Fault See other posts from Server Fault or by Dyno Fu
Published on 2010-03-07T15:32:02Z Indexed on 2010/03/08 10:08 UTC
Read the original article Hit count: 275

Filed under:
|

both pcnet32 and vmxnet can drive the device.

$ lspci -k
...
02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
    Subsystem: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
    Flags: bus master, medium devsel, latency 64, IRQ 19
    I/O ports at 2000 [size=128]
    [virtual] Expansion ROM at dc400000 [disabled] [size=64K]
    Kernel driver in use: vmxnet
    Kernel modules: vmxnet, pcnet32

both kernel modules are loaded,

$ lsmod | grep net
pcnet32                32644  0 
vmxnet                 17696  0 
mii                     5212  1 pcnet32

as you see, kernel driver in use is vmxnet. is there any policy/algorithm in kernel how to choose from the candidates?

© Server Fault or respective owner

Related posts about kernel

Related posts about module