mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Vladislav Bolkhovitin <vst@vlnb.net>
Cc: root@chaos.analogic.com, linux-kernel@vger.kernel.org
Subject: Re: Dependant modules question
Date: Fri, 2 Jul 2004 08:34:57 -0700	[thread overview]
Message-ID: <20040702083457.7677d0e9.rddunlap@osdl.org> (raw)
In-Reply-To: <40E56E96.3050702@vlnb.net>

On Fri, 02 Jul 2004 18:17:58 +0400 Vladislav Bolkhovitin wrote:

| Richard B. Johnson wrote:
| > Did you execute `depmod -a` after putting your modules into the
| > default  directories and their information into /etc/modules.conf ?
|  >
| > Example:
| > /etc/modules.conf
| > alias char-major-177  module-a		# First to load
| > alias char-major-177  module-b		# Second to load
| > alias char-major-177  off		# All done
| > 
| > 
| > # cp module-a.o /lib/modules/`uname -r`/kernel/drivers/char
| > # cp module-b.o /lib/modules/`uname -r`/kernel/drivers/char
| > # depmod -a
| > 
| > The first time anybody tries to access a device with the major
| > number of 177, its modules will be loaded in the correct order
| > by modprobe.
| > 
| > Cheers,
| > Dick Johnson
| > Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
| >             Note 96.31% of all statistics are fiction.
| 
| Sure, I did. That works fine if A is built in the kernel tree (i.e. the 
| sources of A stays there), not when both A and B are external modules.
| 
| Actually, the problem is a bit different: compiled B know nothing about 
| A and doesn't reffer to it, so depmod and friends can't help. Ever if A 
| already loaded, B refused to load (can't find the symbols). I suspect, I 
| need to add something in the Makefile of A/B/both. But what?

Rusty's module testsuite has a sample/test that might help you.
Look in http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
for module-init-tools-testsuite-3.0.tar.gz  (or bz2).

--
~Randy

      reply	other threads:[~2004-07-02 15:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-02 12:36 Vladislav Bolkhovitin
2004-07-02 14:01 ` Richard B. Johnson
2004-07-02 14:17   ` Vladislav Bolkhovitin
2004-07-02 15:34     ` Randy.Dunlap [this message]

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=20040702083457.7677d0e9.rddunlap@osdl.org \
    --to=rddunlap@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=root@chaos.analogic.com \
    --cc=vst@vlnb.net \
    /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

all inboxes | Powered by JetHome®