aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/module.h
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-29 06:47:53 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-29 06:47:53 +0000
commit8e527f6c22c8f66b1761a548e12461c0a5fca531 (patch)
treec37d8f0b64fc217449d274fb1810e1ca29be227f /sys/sys/module.h
parenta91f66d4f6374976fe02167150ba00bfda5fbd37 (diff)
downloadsrc-8e527f6c22c8f66b1761a548e12461c0a5fca531.tar.gz
src-8e527f6c22c8f66b1761a548e12461c0a5fca531.zip
Have EXEC_SET use C_DECLARE_MODULE instead of DECLARE_MODULE.
Add C_DECLARE_MODULE - same as DECLARE_MODULE but uses C_SYSINIT instead of SYSINIT. The C_ items are going to be used for items passing const data to sysinit.
Notes
Notes: svn path=/head/; revision=43381
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r--sys/sys/module.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/sys/module.h b/sys/sys/module.h
index c8d855723d09..a5799954147a 100644
--- a/sys/sys/module.h
+++ b/sys/sys/module.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: module.h,v 1.7 1999/01/27 20:09:21 dillon Exp $
+ * $Id: module.h,v 1.8 1999/01/27 21:50:00 dillon Exp $
*/
#ifndef _SYS_MODULE_H_
@@ -64,8 +64,12 @@ typedef union modspecific {
#ifdef KERNEL
#define DECLARE_MODULE(name, data, sub, order) \
-SYSINIT(name##module, sub, order, module_register_init, &data) \
-struct __hack
+ SYSINIT(name##module, sub, order, module_register_init, &data) \
+ struct __hack
+
+#define C_DECLARE_MODULE(name, data, sub, order) \
+ C_SYSINIT(name##module, sub, order, module_register_init, &data) \
+ struct __hack
void module_register_init(void *data);
int module_register(const char *name, modeventhand_t callback, void *arg,