r12236

Rob Landley rob at landley.net
Tue Nov 22 08:02:00 UTC 2005


On Monday 21 November 2005 16:57, John Kelly wrote:
> On Mon, 21 Nov 2005 23:00:17 +0100, Yann E MORIN
>
> <yann.morin.1998 at anciens.enib.fr> wrote:
> >> So then I try one at a time.  I modprobe via82cxxx, and it autoloads
> >> ide-core.  Then I modprobe ide-disk, which also wants ide-core, and
> >> insmod complains that ide-core is already loaded.  They do load, but
> >> the error message is annoying.
> >
> >It shouldn't complain. Do you have /proc mounted? If not, then loading the
> >module is attempted, because modprobe can not say if the module is loaded
> > or not.
>
> Yes /proc is mounted.  This is what I see:
> > # cat /proc/modules
> > via_rhine 11556 0 - Live 0xce802000
> >
> > # modprobe via82cxxx
> > [... output snipped ...]
> >
> > # cat /proc/modules
> > via82cxxx 7452 0 [permanent], Live 0xce815000
> > ide_core 69864 1 via82cxxx, Live 0xce828000
> > via_rhine 11556 0 - Live 0xce802000
> >
> > # modprobe ide-disk
> > insmod: cannot insert
> > `/lib/modules/2.6.11.12-rd/kernel/drivers/ide/ide-core.ko': File exists
> > (-1): File exists
>
> The module name is ide-core but /proc shows ide_core.  I noticed the
> dash vs. underscore because I typed all this in by hand.  Do you think
> that may be the reason why modprobe does not see the ide-core module
> which is already loaded?

The module stuff in 2.6 turns dashes into underscores, I remember reading 
about this on linux-kernel.  A quick google found this:

http://lwn.net/Articles/63481/

Which doesn't explain why...

Rob



More information about the busybox mailing list