kmod patch

Greg Zornetzer (gaz@andrew.cmu.edu)
Wed, 25 Mar 1998 21:51:42 -0500 (EST)


Hi everyone,

Okay - this is another kmod patch, either against 2.1.90 or 2.1.91pre1,
that implements multiple module loading, and dynamic allocation of
module loading memory.
I'm running with it on 2.1.91pre1, and it's correctly inserting all the
modules that I have (lp/parport,ide modules, vfat, floppy, ppp
networking). It does have some problems with possible races, but these
problems unlikely to occur under normal circumstances. I would appreciate
some advice on the best way to go about making the code race-proof,
though.
I'm not sure if this problem is related or not, but when booting 2.1.90
and 2.1.91pre1 with this patch, I usually get a free_one_pmd bad directory
entry error during bootup. I'm not totally sure what this means. Anyway
- try it at your own risk, bug reports and suggestions for improvement are
welcome. Just rememeber two things - make sure you are running modutils
2.1.85, otherwise bad things can happen. Also, after applying this patch,
do and 'make clean' and then a 'make zImage' to recompile everything. For
some weird reason, I encountered random unexplainable errors if I didn't
do a full kernel recompile after changing kmod.c
The entire file has been gzipped and uuencoded below, simply replace your
current kmod.c with it.

Have fun! =)

Greg Zornetzer - gaz+@andrew.cmu.edu
"Light shines brightest in the darkest night"
http://www.contrib.andrew.cmu.edu/~gaz

begin 644 kmod.c.gz
M'XL("*$.&S4``VMM;V0N8P"M6&USV[@1_DS^"M2=^BB'?IU<IA-%:5.?DO/$
M=G)V<FDOS6A@$C1140!+@)*=C/_[[2Y`BJ24I#=3S=@C$<!B]]G=9W=YN!<&
M\X5.8V9SP918,?A1%X(5FJ>B8E$ERH(GPK"YJ)0HTE$8O);5G+T55E1&J#"X
MT*G,9,*MU,HPJYFIRU)7EBWJPLH29#F1AF1*=1L&-_?L525NV6\:9-K/>,\M
M__QWKM)*K`Z217T@TGH4AGN'8?CG5&12"3:;O9Y>74[/9]?_NCY]<7Y^/9O!
MHE1)4:>"/2NDJN\.39*+]"!_OK%@[TMAMBW42AJ[]<B"%X5.<"4\!)1>-,B8
M0EN6<,5N!).*&;$4%2^8L=R"C?NL5K41`*BN<'G)*ZEK$P9^76>LK#0`:@`)
MUK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