Re: Exporting symbols between modules

From: Adrian Bunk (bunk_at_stusta.de)
Date: 08/24/05

  • Next message: Adrian Bunk: "Re: MAINTAINER file for 2.4.X"
    Date:	Wed, 24 Aug 2005 10:19:58 +0200
    To: Sergio Paracuellos <sparacuellos@lock-linux.com>
    
    

    On Wed, Aug 24, 2005 at 09:48:38AM +0200, Sergio Paracuellos wrote:

    > Hi all,

    Hi Sergio,

    > I'm new in this list and I have some problems exporting symbols in a
    > module to see them in other module.
    >
    > In the module I want to export the symbol I do:
    >
    > tList list;
    > EXPORT_SYMBOL(list);
    >
    > I compile it and install without any problem.
    >
    > And in the module I want to use them I declare list with "extern"
    > prototype:
    >
    > extern tList list;
    >
    > When I compile the module It says me that list is undefined, and I don't
    > know what I am doing wrong.
    >
    > Does anybody know what is happening?
    >
    > Maybe a makefile example would be appreciated...
    >
    > Thanks in advance.

    1. the kernel-mentors list [1] is a better place for such questions
    2. please post an URL to the full source of your driver, without it
       debugging your problem is not possible

    > Regards,
    >
    > Sergio

    cu
    Adrian

    [1] http://selenic.com/mailman/listinfo/kernel-mentors

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    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: Adrian Bunk: "Re: MAINTAINER file for 2.4.X"

    Relevant Pages

    • Re: What policy for BUG_ON()?
      ... >> should become documented policy. ... if somebody wants to compile without debugging. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] x86_64: kill stale mtrr_centaur_report_mcr
      ... > way to disable specific CPUs in there. ... I haven't tried to compile it, but OTOH I haven't yet found which dirty ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: building 2.4.31 for a non-smp system
      ... > I guess I could simply compile with CONFIG_SMP, ... There had been need of rain for many days. ... "Only a promise," Lao Er said. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: RFC: [2.6 patch] better i386 CPU selection
      ... if you compile a module with ... And you should need a "modprobe -f" if the bitmask in the module differs ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] drivers/pnp/: possible cleanups
      ... modular code will use any of them, ... Modular ISAPnP might be interesting in some cases, ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)