FreeBSD 8 kernel module dependencies?

Krassimir Slavchev krassi at
Mon Oct 17 10:51:59 UTC 2011

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:

MODULE_DEPEND(g_eli, mymodule, 1, 1, 1);

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

More information about the freebsd-stable mailing list