public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: forop066@zaz.com.br
Cc: linux-kernel@vger.kernel.org
Subject: Re: Calling module symbols from inside the kernel !
Date: Tue, 07 Nov 2000 14:11:04 +1100	[thread overview]
Message-ID: <9668.973566664@ocs3.ocs-net> (raw)
In-Reply-To: Your message of "Mon, 06 Nov 2000 16:24:13 -0300." <200011061924.QAA31314@srv1-for.for.zaz.com.br>

On Mon, 6 Nov 2000 16:24:13 -0300, 
forop066@zaz.com.br wrote:
>Is it possible to access symbols exported by modules from inside the kernel ?

Not via symbol name, the linkage goes module => kernel, not the other
way round.  Your module needs to register its data when it loads, then
any code can use the registration "get" function to access the data.
This works kernel <=> kernel, kernel <=> module, module <=> module.  Be
careful that you lock the module down while you are using its data.

See ftp://ftp.ocs.com.au/pub/2.4.0-test10-pre6-module-symbol.gz for
sample registration code.

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

  parent reply	other threads:[~2000-11-07  3:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-06 19:24 Calling module symbols from inside the kernel ! forop066
2000-11-06 19:52 ` Brian Gerst
2000-11-07  3:11 ` Keith Owens [this message]
2000-11-07 14:41 ` David Woodhouse
2000-11-08 11:52   ` Ingo Oeser
  -- strict thread matches above, loose matches on Subject: below --
2000-11-07  7:52 richardj_moore

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=9668.973566664@ocs3.ocs-net \
    --to=kaos@ocs.com.au \
    --cc=forop066@zaz.com.br \
    --cc=linux-kernel@vger.kernel.org \
    /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