mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Heinz <thomasheinz@gmx.net>
To: linux-kernel@vger.kernel.org
Subject: Find module by name
Date: Sat, 07 Dec 2002 12:37:16 +0100	[thread overview]
Message-ID: <3DF1DD6C.6040300@gmx.net> (raw)

Hi

I want to implement a kind of module autoloading mechanism.
The situation is the following: There are two modules A and B,
where A needs module B to be loaded under certain (runtime)
conditions.

First I thought the solution would be pretty simple. I wanted to
use a function like find_module from kernel/module.c to search
module_list for a module of a certain name. If it is not there
request_module would be used to load the module and afterwards
another find_module call should return a pointer to the module
if the call succeeded.

Unfortunately this solutions does not work in general as
module_list is not exported which means that I'm getting those
nasty 'unresolved symbol' messages when insmoding module A.

Any suggestions? Thanks for your help.


Thomas


                 reply	other threads:[~2002-12-07 11:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3DF1DD6C.6040300@gmx.net \
    --to=thomasheinz@gmx.net \
    --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

Powered by JetHome