Re: Loading a module multtiple times

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu May 01 2003 - 05:09:06 EST


On Iau, 2003-05-01 at 07:22, Rusty Russell wrote:
> In message <33490.4.64.196.31.1051765837.squirrel@www.osdl.org> you write:
> > Argh, I looked thru insmod.c but not modprobe.c for a solution.
>
> Well, you *could* do:
>
> for i in `seq 1 9`; do
> sed "s/dummy/dumm$i/g" < dummy.ko > dumm$i.ko
> insmod dumm$i.ko
> done
>
> But don't 8)

The dummy driver expects insmod -o dummy1 dummy; insmod -o dummy2 dummy
etc to be usable. You don't normally need lots of dummy drivers nowdays
since you can give one lots of addresses

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:12 EST