Re: cvs commit: src/sys/netgraph ng_base.c src/sys/sys kernel.h

From: John-Mark Gurney <gurney_j_at_resnet.uoregon.edu>
Date: Mon, 10 Jan 2005 10:41:39 -0800
Maksim Yevmenkin wrote this message on Thu, Jan 06, 2005 at 17:45 +0000:
>   This does not address the bigger problem: MODULE_DEPEND
>   does not seem to work when modules are compiled in the
>   kernel, but it fixes the problem with Netgraph Bluetooth
>   device drivers reported by a few folks.

The real problem is that MODULE_DEPEND only documents other kernel
dependancies, but does not reorder SYSINIT's...  Considering that
SYSINIT's are always suppose to be ordered properly (otherwise, what
is the point of SYSINIT's) when staticly linked, having SYSINIT's not
properly ordered is the only bug...

If we move to a more complex and module aware system of SYSINIT's, then
it might happen, but this will be very difficult considering that when
staticly linked, you have no way to seperate which SYSINIT's belong to
which modules...

So, to everone, MODULE_DEPEND only marks which modules are required
for this module to work, it does not infulence startup ordering at
all...

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
Received on Mon Jan 10 2005 - 18:41:41 UTC