Source-Changes-HG archive

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

[src/trunk]: src/sys Export module flags to userland



details:   https://anonhg.NetBSD.org/src/rev/6020b1023c59
branches:  trunk
changeset: 341389:6020b1023c59
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Nov 04 04:28:58 2015 +0000

description:
Export module flags to userland

diffstat:

 sys/kern/sys_module.c |  5 +++--
 sys/sys/module.h      |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 6d8dbec9fc5b -r 6020b1023c59 sys/kern/sys_module.c
--- a/sys/kern/sys_module.c     Wed Nov 04 01:14:02 2015 +0000
+++ b/sys/kern/sys_module.c     Wed Nov 04 04:28:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_module.c,v 1.19 2015/08/24 22:50:32 pooka Exp $    */
+/*     $NetBSD: sys_module.c,v 1.20 2015/11/04 04:28:58 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.19 2015/08/24 22:50:32 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_module.c,v 1.20 2015/11/04 04:28:58 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_modular.h"
@@ -184,6 +184,7 @@
                        ms->ms_class = mi->mi_class;
                        ms->ms_refcnt = mod->mod_refcnt;
                        ms->ms_source = mod->mod_source;
+                       ms->ms_flags = mod->mod_flags;
                        ms++;
                }
                TAILQ_FOREACH(mod, &module_builtins, mod_chain) {
diff -r 6d8dbec9fc5b -r 6020b1023c59 sys/sys/module.h
--- a/sys/sys/module.h  Wed Nov 04 01:14:02 2015 +0000
+++ b/sys/sys/module.h  Wed Nov 04 04:28:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: module.h,v 1.38 2015/06/22 16:35:13 matt Exp $ */
+/*     $NetBSD: module.h,v 1.39 2015/11/04 04:28:58 pgoyette Exp $     */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -223,7 +223,8 @@
        modclass_t      ms_class;
        u_int           ms_size;
        u_int           ms_refcnt;
-       u_int           ms_reserved[4];
+       u_int           ms_flags;
+       u_int           ms_reserved[3];
 } modstat_t;
 
 int    modctl(int, void *);



Home | Main Index | Thread Index | Old Index