Skip to contentSkip to conversation

module is not unloaded when probe fails

DISCUSSION Giuliano Pochini 2 participants 2 messages Mar 22, 2004

lore
Share & tools
lore
#0 lore raw

When I try to load a module and it fails (snd-darla20 in this case) the module is not unloaded. IIRC it didn't happen some months ago, but I have no idea what is the cause because I changed a lot of stuff in the meantime (kernel, compiler, modutils...). Is this the expected behaviour ?

[Giu@Jay Giu]$ uname -a
Linux Jay 2.6.3-ben2 #10 SMP Sun Mar 14 21:46:34 CET 2004 ppc unknown

[root@Jay Giu]# dmesg
[...]
PCI: Enabling device 0001:01:15.0 (0004 -> 0006) [...]
Echoaudio: probe of 0001:01:15.0 failed with error -1 [root@Jay Giu]# lsmod

Module                  Size  Used by
snd_darla20            67908  0
snd_pcm               137692  1 snd_darla20
snd_timer              33000  1 snd_pcm
snd                    72800  3 snd_darla20,snd_pcm,snd_timer
snd_page_alloc         14436  2 snd_darla20,snd_pcm
therm_windtunnel        9748  0

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

#1 lore raw
Quoted 5 lines · Giuliano Pochini

When I try to load a module and it fails (snd-darla20 in this case) the module is not unloaded. IIRC it didn't happen some months ago, but I have no idea what is the cause because I changed a lot of stuff in the meantime (kernel, compiler, modutils...). Is this the expected behaviour ?

Yes, it's by design. If a module sees it can't drive the available hardware, it *should* stay loaded so you either can
- add new hardware it can drive or
- tell it via /sys/bus/pci/drivers/tulip/new_id that it should drive dome hardware with previously unknown pci id.

Quoted 2 lines

[Giu@Jay Giu]$ uname -a
Linux Jay 2.6.3-ben2 #10 SMP Sun Mar 14 21:46:34 CET 2004 ppc unknown

It's a new 2.6 feature.

Regards,
Carl-Daniel

Signature · 9 lines
http://www.hailfinger.org/



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click