Kernel module symbol versioning?

From: Kendall Bennett (KendallB_at_scitechsoft.com)
Date: 08/22/03

  • Next message: Tom Rini: "Re: [PATCH] fix the -test3 input config damages"
    To: linux-kernel@vger.kernel.org
    Date:	Fri, 22 Aug 2003 13:43:16 -0700
    
    

    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?

    Regards,

    ---
    Kendall Bennett
    Chief Executive Officer
    SciTech Software, Inc.
    Phone: (530) 894 8400
    http://www.scitechsoft.com
    ~ SciTech SNAP - The future of device driver technology! ~
    -
    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: Tom Rini: "Re: [PATCH] fix the -test3 input config damages"

    Relevant Pages

    • Re: How To Rebuild Objects From Text Files?
      ... And you must have write permissions there or SaveAsText would fail. ... for the first form that fails, some of us might see if we can load the ... lyle dot fairfield at gmail dot com). ...
      (comp.databases.ms-access)
    • Re: FileLoadException msvcm80.dll and msvcr80.dll are missing (by depends.exe)
      ... What does the log say about the exception? ... > When running on a machine w/o VS2005 - The application fail to load ... So it seems the redist file is installed correct. ... Could it be that depends fail to find a file that the runtime will ...
      (microsoft.public.dotnet.framework.clr)
    • Re: ma111 netgear wwifi adapter and suse 9.0
      ... > compiled and I have tried to get it to load the driver onboot, ... > The drivr tries to load and fail and the reset=1 flag fails as well, ... And be sure you have removed the existing modules before installing new ... Even if you upgrade upgraded modules, ...
      (alt.os.linux.suse)
    • Re: Library location for MSReader
      ... The problem is not that the files fail to load (DRM or non DRM) but that ... they fail regularly during reading with the message "Microsoft Reader is no ... > are the files that fail to load all DRM5 files? ...
      (microsoft.public.pocketpc)
    • Re: original services settings
      ... Under the General tab, check "Normal Startup - load all device drivers and services", ...
      (microsoft.public.windowsxp.help_and_support)