В Thu, 06 Jun 2013 17:41:41 +0200 Michal Marek <mmarek@suse.de> пишет:
On 6.6.2013 16:56, Jean Delvare wrote:
Hi Michal,
Le Thursday 06 June 2013 à 14:55 +0200, Michal Marek a écrit :
On 6.6.2013 14:40, Jean Delvare wrote:
Is there a magic command that would answer the question "is this driver useful for any device present on my machine"?
Remove it from the sysconfig file, run mkinitrd, reboot and see if udev loads it :).
Ah ah, yes of course :) Tried that and no, ata_generic is not loaded by udev. But I do not understand why, because:
$ /sbin/modinfo ata_generic (...) alias: pci:v*d*sv*sd*bc01sc01i*
$ /sbin/lspci -nn | grep '\[0101\]' 00:1f.2 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1 [8086:3a20] 00:1f.5 IDE interface [0101]: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2 [8086:3a26]
So I would expect udev to load it. Unless udev skips module loading if the device already has a driver bound?
AFAIK udev only does an equivalent of /sbin/modprobe $(cat /sys/devices/pci0000:00/0000:00:1f.2/modalias)
No, it checks whether device is already claimed by driver. DRIVER!="?*", ... -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org