[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loading a module
On Thu, Oct 04, 2001 at 02:51:00PM +0530, C.Mohanasundaram wrote:
[People, *please* learn how to quote. Including all the irrelevant bits
of previous messages is *not* good netiquette.]
> "your module
> > will be loaded automatically when a user uses your module (thro system
> > call)"
> u mean when the user uses my new system call.
>
> anyway
> i checked /lib/modules/2.4.2-2/ directory
> there is no misc directory under it
> so i created a directory in the name "misc" and put my module inside that
> directory and called the system call using a user program it didnt work.
You need to run "depmod -a" after that or otherwise modprobe won't find
it.
> I wonder how the kernel will know which module to be loaded.
The kernel doesn't know, it just asks modprobe to do the dirty job.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/