svn commit: r274251 - head/sys/sys
Konstantin Belousov
kib at FreeBSD.org
Fri Nov 7 20:15:24 UTC 2014
Author: kib
Date: Fri Nov 7 20:15:23 2014
New Revision: 274251
URL: https://svnweb.freebsd.org/changeset/base/274251
Log:
Add DEV_MODULE_ORDERED().
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/sys/conf.h
Modified: head/sys/sys/conf.h
==============================================================================
--- head/sys/sys/conf.h Fri Nov 7 20:10:09 2014 (r274250)
+++ head/sys/sys/conf.h Fri Nov 7 20:15:23 2014 (r274251)
@@ -227,14 +227,16 @@ struct devsw_module_data {
/* Do not initialize fields hereafter */
};
-#define DEV_MODULE(name, evh, arg) \
+#define DEV_MODULE_ORDERED(name, evh, arg, ord) \
static moduledata_t name##_mod = { \
#name, \
evh, \
arg \
}; \
-DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
+DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, ord)
+#define DEV_MODULE(name, evh, arg) \
+ DEV_MODULE_ORDERED(name, evh, arg, SI_ORDER_MIDDLE)
void clone_setup(struct clonedevs **cdp);
void clone_cleanup(struct clonedevs **);
More information about the svn-src-head
mailing list