linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Loading a module multtiple times
@ 2003-04-30 21:05 Randy.Dunlap
  2003-04-30 22:42 ` Kai Germaschewski
  2003-05-01  2:12 ` Rusty Russell
  0 siblings, 2 replies; 8+ messages in thread
From: Randy.Dunlap @ 2003-04-30 21:05 UTC (permalink / raw)
  To: rusty; +Cc: lkml


Hi Rusty-

I was looking into a bug in /proc/net/dev truncated output.
/proc/net/dev lists {if (!buggy)} all loaded network interfaces.

To get a large number of network interfaces, Christian (below)
told me to copy driver/net/dummy.o to several different file names
and then insmod them.  It seems to have worked for him, and it works
that way in 2.4.recent, but it's not working for me.  See error
messages below.

Which way is expected behavior?
What should be the expected behavior?
or am I just seeing bugs (failures) that noone else sees?

It seems like not supporting this is likely to cause some problems.

Thanks,
~Randy


(was: [BUG 2.5.67 (and probably earlier)] /proc/dev/net doesnt show all net devices)

On Wed, 30 Apr 2003 09:11:11 +0200 Christian Bornträger <linux@borntraeger.net> wrote:


| > How do I configure the dummy network driver to get loads of interfaces?
| 
| Just copy the dummy.o to dummy1.o dummy2.o dummy3.o,  insmod and ifconfig 
| them.

Doesn't work for me.  insmod (from ver. 0.9.11a module-init-tools)
won't load multiple copies of dummy[n].o or dummy[n].ko.
(with dummy already loaded)

For the .o files, it says:
  dummy: no version magic, tainting kernel.
  Error inserting 'dummy1.o': -1 File exists

and for the .ko files, it says:
  Error inserting 'dummy1.ko': -1 File exists
---

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Loading a module multtiple times
@ 2003-04-30 21:59 Chuck Ebbert
  0 siblings, 0 replies; 8+ messages in thread
From: Chuck Ebbert @ 2003-04-30 21:59 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: lkml

Randy Dunlap wrote:

>  Error inserting 'dummy1.ko': -1 File exists

  Duplicate kobject/sysfs name?

------
 Chuck

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Loading a module multtiple times
@ 2003-05-01 11:54 Chuck Ebbert
  0 siblings, 0 replies; 8+ messages in thread
From: Chuck Ebbert @ 2003-05-01 11:54 UTC (permalink / raw)
  To: Rusty Russell; +Cc: linux-kernel

> No, it's a 2.5 thing: modules know their own name.  This is because
> (1) the names are used to set new-style boot parameters, (2) needing
> to insert two modules is usually wrong, since how would that work if
> the module was built-in?
> 
> It also opens us up to the possibility of a list of built-in modules,
> if we wanted to.

  The list of built-ins would be really, really nice -- it would
beat the heck out of digging through the .config and/or going
back to the build machine and doing 'make menuconfig' just to
see what's in there.

------
 Chuck

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-05-01 11:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-30 21:05 Loading a module multtiple times Randy.Dunlap
2003-04-30 22:42 ` Kai Germaschewski
2003-05-01  2:12 ` Rusty Russell
2003-05-01  5:10   ` Randy.Dunlap
2003-05-01  6:22     ` Rusty Russell
2003-05-01 10:09       ` Alan Cox
2003-04-30 21:59 Chuck Ebbert
2003-05-01 11:54 Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).