Thanks for your response Alan.
> > (insmod) the driver module without problems. However, if I boot the
> > same system with linux-smp, it's a different story. I can compile the
> > driver, but when I try to load it, I get a bunch of error messages
> > regarding "unresolved symbol" for many of the kernel function calls.
> > Any ideas on what may be wrong?
>
> You need to build the module against a matching SMP kernel configuration.
> You can get the configuration from the source rpm for the kernel.
>
> Modules built uniprocessor and smp arent interchangeable
Yes, I'm aware. Thanks. I simply wanted to mention that the same source code
can be compiled and loaded in a uniprocessor successfully. I also understand
that I will have to make some code changes (spinlocks, etc.) to make it run
correctly in smp.
Maybe I'm missing something in the way I'm building my module for smp.
To build it for smp I copied my source code to a system running Linux SMP and
added -D__SMP__ to my CFLAGS in the Makefile. Then I simply used make to build
it. The process builds the module without problems, but insmod complains about
unresolved symbols. What am I missing?
I got the source for the smp kernel from the appropriate rpm. Is there something
special that I need to do in order to "build the module against a matching SMP
kernel configuration" ?
Thanks again,
Juan
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]