Add DEV_MODULE_ORDERED().

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2014-11-07 20:15:23 +00:00
parent 8055eb2454
commit 1f3dc5c5b5

View File

@ -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 **);