MODULE_DEPEND.9freebsd

Langue: en

Version: 307431 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

MODULE_DEPEND - set kernel module dependencies

SYNOPSIS

In sys/param.h In sys/module.h Fn MODULE_DEPEND name moddepend int minversion int prefversion int maxversion

DESCRIPTION

The Fn MODULE_DEPEND macro sets a dependency on another kernel module with name Fa moddepend , which has registered its version with Fn MODULE_VERSION .

The Fn MODULE_DEPEND macro provides hints to the kernel loader(8) and to the kernel linker to ensure that the named dependency is loaded prior to the existing module. It does not change or dictate the order in which modules are initialized at runtime.

Three versions must be specified for Fa moddepend :

Fa minversion
The minimum version on which the current module can depend.
Fa maxversion
The maximum version on which the current module can depend.
Fa prefversion
The preferred version on which the current module can depend.

EXAMPLES

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

SEE ALSO

DECLARE_MODULE9, module(9), MODULE_VERSION9

AUTHORS

An -nosplit This manual page was written by An Alexander Langer Aq alex@FreeBSD.org .