mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
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.
This commit is contained in:
parent
a91f66d4f6
commit
8e527f6c22
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43381
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)exec.h 8.3 (Berkeley) 1/21/94
|
||||
* $Id: exec.h,v 1.20 1998/11/15 15:33:52 bde Exp $
|
||||
* $Id: exec.h,v 1.21 1998/12/16 16:28:58 bde Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EXEC_H_
|
||||
@ -111,7 +111,7 @@ int exec_unregister __P((const struct execsw *));
|
||||
name ## _modevent, \
|
||||
(void *)& execsw_arg \
|
||||
}; \
|
||||
DECLARE_MODULE(name, name ## _mod, SI_SUB_EXEC, SI_ORDER_ANY)
|
||||
C_DECLARE_MODULE(name, name ## _mod, SI_SUB_EXEC, SI_ORDER_ANY)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user