Lines Matching refs:module
35 #define MDT_DEPEND 1 /* argument is a module name */
36 #define MDT_MODULE 2 /* module declaration */
37 #define MDT_VERSION 3 /* module version(s) */
50 typedef struct module *module_t;
57 const char *name; /* module name */
63 * A module can use this to report module specific data to the user via
118 #define MODULE_DEPEND(module, mdepend, vmin, vpref, vmax) \
119 static struct mod_depend _##module##_depend_on_##mdepend \
125 MODULE_METADATA(_md_##module##_on_##mdepend, MDT_DEPEND, \
126 &_##module##_depend_on_##mdepend, #mdepend)
129 * Every kernel has a 'kernel' module with the version set to
130 * __FreeBSD_version. We embed a MODULE_DEPEND() inside every module
131 * that depends on the 'kernel' module. It uses the current value of
134 * (i.e. M99999 for M.x). This allows a module built on M.x to work
143 SYSINIT(name##module, sub, order, module_register_init, &data); \
150 * The module declared with DECLARE_MODULE_TIED can only be loaded
159 #define MODULE_VERSION(module, version) \
160 static struct mod_version _##module##_version \
164 MODULE_METADATA(_##module##_version, MDT_VERSION, \
165 &_##module##_version, #module)