Questions about The Linux Kernel Module Programming Guide 2.6

From: iamnilo (alain_mosnier_at_yahoo.com)
Date: 09/15/04

  • Next message: P.T. Breuer: "Re: can't kill the process"
    Date: 15 Sep 2004 04:57:34 -0700
    
    

    Hello,

    I'm going through this book in order to learn. I'm running a PC Athlon
    with SUSE 9.1 Pro.

    Is this the best forum to ask questions about its contents?

    For the moment, I have two questions:

    - (In 1.2.1.1) it says: "Until we cover modversions, the examples in
    the guide may not work if you're running a kernel with modversioning
    turned on.". I have run 'make xconfig' in my linux source code
    directory, and modversioning is apparently on. However, I appear to be
    able to load and unload the first modules I compile with the book. I
    was just surprised. I was expecting to be forced to recompile my
    kernel with a different setting. I'm just trying to undestand, so if
    anybody has a comment about that, I'm interested.

    - (In 2.2) it says: "Here's another exercise to the reader. See that
    comment above the return statement in init_module()? Change the return
    value to something non-zero, recompile and load the module again. What
    happens?". I let the init module return '1' instead of '0', nothing
    particular happens!!! I still can load and unload the module like
    before, and I get no error message in the log. I have made sure that I
    do recompile the module my removing all .o files etc. More generally,
    where can I find the reference information about module programming
    for the 2.6 kernel when I have questions like that?

    Thanks in advance,

    Alain


  • Next message: P.T. Breuer: "Re: can't kill the process"

    Relevant Pages

    • Unloading kernel modules (fault tarp error)
      ... I can easily load and unload them using ... I want to load them at startup. ... fault in kernel error and stop booting. ...
      (freebsd-questions)
    • Re: Problem with wireless card drivers
      ... In 6.1 you do not need to recompile the kernel. ... You can load the drivers. ... kldload if_ndis.ko ...
      (freebsd-questions)
    • Re: how can a kernel module unload itself?
      ... kernel and module loaded when needed. ... Dynamic load is cool and error prone. ... When jobis over, unload B, A... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: trouble with kernel
      ... >kernel do i have to recompile it to make it work and if so how do i recompile? ... You only need to recompile if you want the driver in the kernel. ... unloading, or check the document for which one to load. ...
      (freebsd-questions)
    • Re: IDE device driver query
      ... Compile it as a module in the kernel and unload this module (or don't load ... Beware: your system cannot be on an IDE disk in that case. ...
      (comp.os.linux.embedded)