summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/subr_devstat.c2
-rw-r--r--sys/sys/devicestat.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index b965635..4581fe9 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -397,7 +397,7 @@ devstat_alloc(void)
if (!once) {
make_dev(&devstat_cdevsw, 0,
- UID_ROOT, GID_WHEEL, 0400, "devstat");
+ UID_ROOT, GID_WHEEL, 0400, DEVSTAT_DEVICE_NAME);
once++;
}
TAILQ_FOREACH(spp, &pagelist, list) {
diff --git a/sys/sys/devicestat.h b/sys/sys/devicestat.h
index c06df37..d8288a2 100644
--- a/sys/sys/devicestat.h
+++ b/sys/sys/devicestat.h
@@ -40,6 +40,11 @@
#define DEVSTAT_NAME_LEN 16
/*
+ * device name for the mmap device
+ */
+#define DEVSTAT_DEVICE_NAME "devstat"
+
+/*
* ATTENTION: The devstat version below should be incremented any time a
* change is made in struct devstat, or any time a change is made in the
* enumerated types that struct devstat uses. (Only if those changes
@@ -163,7 +168,7 @@ struct devstat {
*/
devstat_type_flags device_type; /* Device type */
devstat_priority priority; /* Controls list pos. */
- void *id; /*
+ const void *id; /*
* Identification for
* GEOM nodes
*/
OpenPOWER on IntegriCloud