Module Name:    src
Committed By:   pgoyette
Date:           Sat Mar 10 10:33:02 UTC 2018

Modified Files:
        src/sys/sys [pgoyette-compat]: module.h

Log Message:
Add new fields and flags needed to support module aliases


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.41.14.1 src/sys/sys/module.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/module.h
diff -u src/sys/sys/module.h:1.41 src/sys/sys/module.h:1.41.14.1
--- src/sys/sys/module.h:1.41	Wed Nov 16 10:42:14 2016
+++ src/sys/sys/module.h	Sat Mar 10 10:33:02 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: module.h,v 1.41 2016/11/16 10:42:14 pgoyette Exp $	*/
+/*	$NetBSD: module.h,v 1.41.14.1 2018/03/10 10:33:02 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -62,6 +62,7 @@ typedef enum modcmd {
 	MODULE_CMD_FINI,		/* mandatory */
 	MODULE_CMD_STAT,		/* optional */
 	MODULE_CMD_AUTOUNLOAD,		/* optional */
+	MODULE_CMD_GETALIASES,		/* optional */
 } modcmd_t;
 
 #ifdef _KERNEL
@@ -78,6 +79,7 @@ typedef struct modinfo {
 	int		(*mi_modcmd)(modcmd_t, void *);
 	const char	*mi_name;
 	const char	*mi_required;
+	const char	*mi_aliases;
 } const modinfo_t;
 
 /* Per module information, maintained by kern_module.c */ 
@@ -95,6 +97,7 @@ typedef struct module {
 	int			mod_flags;
 #define MODFLG_MUST_FORCE	0x01
 #define MODFLG_AUTO_LOADED	0x02
+#define	MODFLG_IS_ALIAS		0x04	/* only for export via modstat_t */
 
 } module_t;
 

Reply via email to