Export module flags to userland
This commit is contained in:
parent
fad49cfc60
commit
3e2029259a
@ -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.
|
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||||
@ -31,7 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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
|
#ifdef _KERNEL_OPT
|
||||||
#include "opt_modular.h"
|
#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_class = mi->mi_class;
|
||||||
ms->ms_refcnt = mod->mod_refcnt;
|
ms->ms_refcnt = mod->mod_refcnt;
|
||||||
ms->ms_source = mod->mod_source;
|
ms->ms_source = mod->mod_source;
|
||||||
|
ms->ms_flags = mod->mod_flags;
|
||||||
ms++;
|
ms++;
|
||||||
}
|
}
|
||||||
TAILQ_FOREACH(mod, &module_builtins, mod_chain) {
|
TAILQ_FOREACH(mod, &module_builtins, mod_chain) {
|
||||||
|
@ -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.
|
* Copyright (c) 2008 The NetBSD Foundation, Inc.
|
||||||
@ -223,7 +223,8 @@ typedef struct modstat {
|
|||||||
modclass_t ms_class;
|
modclass_t ms_class;
|
||||||
u_int ms_size;
|
u_int ms_size;
|
||||||
u_int ms_refcnt;
|
u_int ms_refcnt;
|
||||||
u_int ms_reserved[4];
|
u_int ms_flags;
|
||||||
|
u_int ms_reserved[3];
|
||||||
} modstat_t;
|
} modstat_t;
|
||||||
|
|
||||||
int modctl(int, void *);
|
int modctl(int, void *);
|
||||||
|
Loading…
Reference in New Issue
Block a user