diff --git a/sys/kern/sys_module.c b/sys/kern/sys_module.c index 71931ae4bc6c..c10d3249d9a9 100644 --- a/sys/kern/sys_module.c +++ b/sys/kern/sys_module.c @@ -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 -__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 @@ sys_modctl(struct lwp *l, const struct sys_modctl_args *uap, 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 --git a/sys/sys/module.h b/sys/sys/module.h index 0d38540c5cc2..7442753e7753 100644 --- a/sys/sys/module.h +++ b/sys/sys/module.h @@ -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 @@ typedef struct modstat { 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 *);