public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: simon guinot <simon.guinot@laposte.net>
To: Sergio Paracuellos <sparacuellos@lock-linux.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: Exporting symbols between modules
Date: Wed, 24 Aug 2005 16:59:22 +0200	[thread overview]
Message-ID: <20050824165922.6f0d8c08.simon.guinot@laposte.net> (raw)
In-Reply-To: <1124868488.3073.10.camel@localhost.localdomain>

hello

On Wed, 24 Aug 2005 09:28:08 +0200
Sergio Paracuellos <sparacuellos@lock-linux.com> wrote:

> Hi all,
> 
> 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);

ok... you've better to use the EXPORT_SYMBOL_NOVERS macro to export the symbol whiteout the versioning information...
don't forget to define EXPORT_SYMTAB before include module.h...
you can add a -DEXPORT_SYMTAB in your Makefile or a #define EXPORT_SYMTAB before 
#include <linux/module.h> in your source file...

> 
> 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.

a compilation error or a loading error ?
are you sure to have well defined the type tList in your "client" module ?
may be a shareed header between your modules is missing :) 

regards

simon
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs

  reply	other threads:[~2005-08-24 14:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-24  7:28 Exporting symbols between modules Sergio Paracuellos
2005-08-24 14:59 ` simon guinot [this message]
2005-08-24 15:15   ` Sergio Paracuellos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050824165922.6f0d8c08.simon.guinot@laposte.net \
    --to=simon.guinot@laposte.net \
    --cc=linux-newbie@vger.kernel.org \
    --cc=sparacuellos@lock-linux.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox