man.bsd.lv manual page server

Manual Page Search Parameters

MODULE_DEPEND(9) Kernel Developer's Manual MODULE_DEPEND(9)

MODULE_DEPENDset kernel module dependencies

#include <sys/module.h>

MODULE_DEPEND(name, moddepend, int minversion, int prefversion, int maxversion);

The () macro sets a dependency of the module called name on another kernel module moddepend, which has registered its version with (). Three versions must be specified on which the module can depend: The minimal and maximal versions this module can depend on as well as the preferred version.

MODULE_DEPEND(foo, bar, 1, 3, 4);

DECLARE_MODULE(9), module(9), MODULE_VERSION(9)

This manual page was written by Alexander Langer <alex@FreeBSD.org>.

July 19, 2006 DragonFly-5.6.1