HOWTO on modules in 2.6.5


Results 1 to 7 of 7

Thread: HOWTO on modules in 2.6.5

  1. #1
    Join Date
    Sep 2002
    Location
    Boston, USA
    Posts
    217

    HOWTO on modules in 2.6.5

    Is there a conceptual write-up on how modules work in 2.6 vs earlier versions of the kernel? I've googled around, but most of the documents talk about a specific module not about modules in general.

  2. #2
    Join Date
    May 2002
    Posts
    1,449
    There might be a kernel-developers or kernel-hacker's howto on tldp.org. Also try looking at kernel.org to see if they have any developer information. There should also be documenation in your kernel source about specific modules/features.
    "I know where you're from but where do you belong?"

  3. #3
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053

    Re: HOWTO on modules in 2.6.5

    Originally posted by afaiq
    Is there a conceptual write-up on how modules work in 2.6 vs earlier versions of the kernel? I've googled around, but most of the documents talk about a specific module not about modules in general.
    Is there a specific question you have?
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  4. #4
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    Try the Documentation/ directory in the kernel source.

    Specifically, files like Documentation/debugging-modules.txt, Documentation/driver-model/*, and maybe some others (look around). I'm not sure if these will answer your questions, but they might. Also take a look at the source for module-init-tools; that might help some also.

  5. #5
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,053
    Here's a post on "module versioning" and patching module tools, written when the 2.5 was still in early development which leads to where we are at today in the 2.6

    http://www.uwsg.iu.edu/hypermail/lin...01.3/0272.html
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  6. #6
    Join Date
    Sep 2002
    Location
    Boston, USA
    Posts
    217

    Re: Re: HOWTO on modules in 2.6.5

    Originally posted by JohnT
    Is there a specific question you have?
    just trying to undertand the change from modules.conf to modprobe.conf (reasons and why it is better!) and if there is a change in what modules need to be compiled in the kernel vs as loadable modules.

    Thanks Loki3, JohnT and bwkaz for all the suggestions. tldp.org seems to have some of what I was looking for:

    http://tldp.org/HOWTO/Module-HOWTO/index.html

    This site together with some other stuff in the Documentation directory in the kernel source seems to be a good starting point.

  7. #7
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,936
    The thing that's better isn't modprobe.conf versus modules.conf. The thing that's better is module-init-tools versus modutils.

    Modutils used to do a lot of work to load a kernel module. Much of that work was greatly simplified by moving it into kernel space, and only providing three system calls to user space. Module-init-tools uses these three system calls to tell the kernel module loader to load a specific module.

    Module-init-tools still tracks dependencies, I think, and tells the kernel to insert modules in the order that satisifies all of those dependencies. But the kernel actually does the symbol resolution, the linking into kernel memory, etc., etc., where modutils used to do a good chunk of that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •