From 834ddd1bcc092e4a26f16724892636b249316d70 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 27 Sep 2002 18:27:10 +0000 Subject: Rename struct specinfo to the more appropriate struct cdev. Agreed on: jake, rwatson, jhb --- sys/kern/kern_conf.c | 12 ++++++------ sys/kern/kern_mib.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 1fbe813..05fc62b 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -56,11 +56,11 @@ static MALLOC_DEFINE(M_DEVT, "dev_t", "dev_t storage"); /* The number of dev_t's we can create before malloc(9) kick in. */ #define DEVT_STASH 50 -static struct specinfo devt_stash[DEVT_STASH]; +static struct cdev devt_stash[DEVT_STASH]; -static LIST_HEAD(, specinfo) dev_hash[DEVT_HASH]; +static LIST_HEAD(, cdev) dev_hash[DEVT_HASH]; -static LIST_HEAD(, specinfo) dev_free; +static LIST_HEAD(, cdev) dev_free; devfs_create_t *devfs_create_hook; devfs_destroy_t *devfs_destroy_hook; @@ -173,13 +173,13 @@ static dev_t allocdev(void) { static int stashed; - struct specinfo *si; + struct cdev *si; if (LIST_FIRST(&dev_free)) { si = LIST_FIRST(&dev_free); LIST_REMOVE(si, si_hash); } else if (stashed >= DEVT_STASH) { - MALLOC(si, struct specinfo *, sizeof(*si), M_DEVT, + MALLOC(si, struct cdev *, sizeof(*si), M_DEVT, M_USE_RESERVE | M_ZERO); } else { si = devt_stash + stashed++; @@ -194,7 +194,7 @@ allocdev(void) dev_t makedev(int x, int y) { - struct specinfo *si; + struct cdev *si; udev_t udev; int hash; diff --git a/sys/kern/kern_mib.c b/sys/kern/kern_mib.c index ebcba94..b739a17 100644 --- a/sys/kern/kern_mib.c +++ b/sys/kern/kern_mib.c @@ -321,8 +321,8 @@ SYSCTL_INT(_debug_sizeof, OID_AUTO, proc, CTLFLAG_RD, 0, sizeof(struct proc), "sizeof(struct proc)"); #include -SYSCTL_INT(_debug_sizeof, OID_AUTO, specinfo, CTLFLAG_RD, - 0, sizeof(struct specinfo), "sizeof(struct specinfo)"); +SYSCTL_INT(_debug_sizeof, OID_AUTO, cdev, CTLFLAG_RD, + 0, sizeof(struct cdev), "sizeof(struct cdev)"); #include #include -- cgit v1.1