MODULE_DEPEND (9)
Leading comments
Copyright (c) 2001 Alexander Langer All rights reserved. This program is free software. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaim...
NAME
MODULE_DEPEND - set kernel module dependenciesSYNOPSIS
In sys/param.h In sys/module.h Fn MODULE_DEPEND name moddepend int minversion int prefversion int maxversionDESCRIPTION
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);