[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Load kernel module automatically



On Wed, Jun 05, 2002 at 03:08:42PM -0600, Joseph A Knapka wrote:
> Forgive me, but how else, without copying the module.o to
> /lib/modules/<version>/... and doing "depmod module.o",
> is the kernel able to find the module in order to load it?

Herein lies the problem. The kernel doesn't _care_ where you put the
module. modutils might care, but only slightly. During development, I've
got kernels strewn about subdirectories of my home directory, /tmp, and
worse. insmod ./module_name.o always seems to work fine. :)

Of course, if you want modprobe to automatically load dependencies, it
might be easier to put the module in /lib/modules/<version>/* somewhere.

-- 
http://sardonix.org/

PGP signature