Re: Kernel module symbol versioning?

From: Bas Mevissen (ml_at_basmevissen.nl)
Date: 08/25/03

  • Next message: paul.devriendt_at_amd.com: "RE: Cpufreq for opteron"
    Date:	Mon, 25 Aug 2003 15:03:18 +0200
    To: Kendall Bennett <KendallB@scitechsoft.com>
    
    

    Kendall Bennett wrote:

    > Hi,
    >
    > I have been reading the book "Linux Device Drivers, 2nd Edition" and have
    > some questions about symbol versioning. In Chapter 11 it mentions that
    > you can use the <linux/modversions.h> header file to compile your module
    > with symbol versions enabled, so that your module will load on multiple
    > kernels and fail if the symbol CRC's do not match. I tested this out on a
    > simple test module, but this module fails to load unless I pass the '-f'
    > flag to insmod (Red Hat 7.3 and 8.0).
    >
    > Is there a way to compile the module so that insmod will only complain if
    > there is a version conflict? Or do you always have to use -f in this case
    > to force the module to load? If you have to do that, will -f still fail
    > to load if the versioned symbols don't match?
    >

    Isn't the confict cause here (just) that one is compiled with gcc 2.x
    and the other with gcc 3.x?

    In other words, retry compiling this module on one system with the two
    different kernels, as you want to compare kernel source level interface
      differences and not kernel ABI (Application Binairy Interface IIRC)
    differences.

    Regards,

    Bas.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: paul.devriendt_at_amd.com: "RE: Cpufreq for opteron"

    Relevant Pages

    • Re: Status of SCHED_ULE?
      ... > The load isn't very complicated, usually just gnome 2.4 and mozilla ... > like a compile of a program, ... I ask because I have used ULE on two different kernels so far on this ...
      (freebsd-current)
    • Understanding I/O behaviour
      ... load goes up to 12 and responsiveness goes down. ... echo "Finish 3 dd processes: ... The "felt" responsiveness was best with the last two kernels, ...
      (Linux-Kernel)
    • Re: [RFC] Kernel version numbering scheme change
      ... Upstream kernels can be a bit iffy especially on 32bit boxes with lots ... At minimum with 2.6.x under high load you also need Arjan van de Ven's ... amounts of I/O make sure your I/O devices are 64bit capable - particular ...
      (Linux-Kernel)
    • 2.6.8.1-mm3 and above hang with iptables and sound
      ... When initscripts reach the load of stored iptables rules, the box hangs. ... Previuos kernels work fine. ...
      (Linux-Kernel)
    • unknown symbols loading modules under 2.6.x
      ... They load just fine under the 2.4.x kernels. ... The loadable module these symbols are ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)