Date: Fri, 7 Nov 2014 20:15:23 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r274251 - head/sys/sys Message-ID: <201411072015.sA7KFNhU030525@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 **);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411072015.sA7KFNhU030525>