* kernel internal built in module loading order
@ 2006-10-20 22:55 Jim
2006-10-20 23:17 ` Jan Engelhardt
[not found] ` <f8912af80610201639u2949bc5fw2bad77311ffaf9d5@mail.gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Jim @ 2006-10-20 22:55 UTC (permalink / raw)
To: linux-kernel
Hi,
Does the kernel load internal built in modules (obj-y) in a certain
order, or in a random order? Does the kernel internal module loading
based on a configuration file?
I am running an ARM system, is there a way to delay the Ethernet module
loading until some other internal modules are loaded?
Thank you.
Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel internal built in module loading order
2006-10-20 22:55 kernel internal built in module loading order Jim
@ 2006-10-20 23:17 ` Jan Engelhardt
[not found] ` <f8912af80610201639u2949bc5fw2bad77311ffaf9d5@mail.gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2006-10-20 23:17 UTC (permalink / raw)
To: Jim; +Cc: linux-kernel
> Does the kernel load internal built in modules (obj-y) in a certain
> order,
Yes. As far as I can tell:
- special ordering (when you find __define_initcall in the
kernel source, you know)
and
- linking order
play a role.
> or
> in a random order? Does the kernel internal module loading based on a
> configuration file?
/etc/modprobe.conf, but the proper answer would be "no".
> I am running an ARM system, is there a way to delay the Ethernet
> module loading
> until some other internal modules are loaded?
I am sure you can use some modprobe magic, such as:
install 8139too /usr/local/bin/my-8139-loader
And your 8139-loader contains:
#!/bin/bash
while ! condition; do
sleep 1;
done;
modprobe 8139too;
I just don't know how well that fares when you are trying to modprobe
from within modprobe.
-`J'
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel internal built in module loading order
[not found] ` <f8912af80610201639u2949bc5fw2bad77311ffaf9d5@mail.gmail.com>
@ 2006-10-20 23:44 ` Michael Ruan
0 siblings, 0 replies; 3+ messages in thread
From: Michael Ruan @ 2006-10-20 23:44 UTC (permalink / raw)
To: yh; +Cc: linux-kernel
>Hi,
>Does the kernel load internal built in modules (obj-y) in a certain
>order, or in a random order? Does the kernel internal module loading
>based on a configuration file?
>I am running an ARM system, is there a way to delay the Ethernet module
>loading until some other internal modules are loaded?
>Thank you.
Yes, it follows some rules.
Please refer to the "3.2 Built-in object goals - obj-y" section of your
kernel_source_root/Documentation/kbuild/makefiles.txt
Michael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-20 23:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-20 22:55 kernel internal built in module loading order Jim
2006-10-20 23:17 ` Jan Engelhardt
[not found] ` <f8912af80610201639u2949bc5fw2bad77311ffaf9d5@mail.gmail.com>
2006-10-20 23:44 ` Michael Ruan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.