FreeBSD 8 kernel module dependencies?

Krassimir Slavchev
Mon, 17 Oct 2011 10:52:06 -0000

Hello list,

I have a kernel module for an usb device which have to be loaded before
geom_eli. This scenario works on FreeBSD 7.x using MODULE_DEPEND:

g_eli.c:
MODULE_DEPEND(g_eli, mymodule, 1, 1, 1);

mymodule.c:
MODULE_DEPEND(mymodule, usb, 1, 1, 1);
MODULE_VERSION(mymodule, 1);

Unfortunately I can not achieve this under 8.x. The geom_eli is loaded
before the usb loading is finished. Adding MODULE_DEPEND(g_eli, usb, 1,
1, 1); in geom_eli does not help too.

Is there something I miss?
How to trace the module loading order?


Thanks in advance