Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-compat]: src/sys/sys Add new fields and flags needed to support...



details:   https://anonhg.NetBSD.org/src/rev/be9e92013822
branches:  pgoyette-compat
changeset: 320998:be9e92013822
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sat Mar 10 10:33:02 2018 +0000

description:
Add new fields and flags needed to support module aliases

diffstat:

 sys/sys/module.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 2b2666038012 -r be9e92013822 sys/sys/module.h
--- a/sys/sys/module.h  Sat Mar 10 05:14:26 2018 +0000
+++ b/sys/sys/module.h  Sat Mar 10 10:33:02 2018 +0000
@@ -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 @@
        MODULE_CMD_FINI,                /* mandatory */
        MODULE_CMD_STAT,                /* optional */
        MODULE_CMD_AUTOUNLOAD,          /* optional */
+       MODULE_CMD_GETALIASES,          /* optional */
 } modcmd_t;
 
 #ifdef _KERNEL
@@ -78,6 +79,7 @@
        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 @@
        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;
 



Home | Main Index | Thread Index | Old Index