diff options
author | phk <phk@FreeBSD.org> | 2003-02-08 14:50:27 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-08 14:50:27 +0000 |
commit | 384af30f6369e69cff201afee3edc6d2ac874bb2 (patch) | |
tree | 3034831ddcfdb2c0932c26d9609a5bb7407a6f4e /sys | |
parent | 5f06b2478635a7c7de2b984909fae774c80e7b01 (diff) | |
download | FreeBSD-src-384af30f6369e69cff201afee3edc6d2ac874bb2.zip FreeBSD-src-384af30f6369e69cff201afee3edc6d2ac874bb2.tar.gz |
Put the name of the /dev entry in the .h file, userland will need it.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/geom_stats.c | 2 | ||||
-rw-r--r-- | sys/geom/geom_stats.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/geom/geom_stats.c b/sys/geom/geom_stats.c index f93be80..8b6581b 100644 --- a/sys/geom/geom_stats.c +++ b/sys/geom/geom_stats.c @@ -141,5 +141,5 @@ void g_stat_init(void) { make_dev(&geom_stats_cdevsw, GEOM_MINOR_STATS, - UID_ROOT, GID_WHEEL, 0400, "geom.stats"); + UID_ROOT, GID_WHEEL, 0400, GEOM_STATS_DEVICE); } diff --git a/sys/geom/geom_stats.h b/sys/geom/geom_stats.h index 54ca880..8a0cf83 100644 --- a/sys/geom/geom_stats.h +++ b/sys/geom/geom_stats.h @@ -31,6 +31,8 @@ #ifndef _GEOM_GEOM_STATS_H_ #define _GEOM_GEOM_STATS_H_ +#define GEOM_STATS_DEVICE "geom.stats" + /* * A g_stat contains the statistics we collect on consumers and * providers. |