summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-27 18:27:10 +0000
committerphk <phk@FreeBSD.org>2002-09-27 18:27:10 +0000
commit834ddd1bcc092e4a26f16724892636b249316d70 (patch)
treeb0967d8a8cefb34751a29b420ac0574c8e7496f7 /sys/kern
parent8b9b57067238d550b614cd13698959954d025a3f (diff)
downloadFreeBSD-src-834ddd1bcc092e4a26f16724892636b249316d70.zip
FreeBSD-src-834ddd1bcc092e4a26f16724892636b249316d70.tar.gz
Rename struct specinfo to the more appropriate struct cdev.
Agreed on: jake, rwatson, jhb
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_conf.c12
-rw-r--r--sys/kern/kern_mib.c4
2 files changed, 8 insertions, 8 deletions
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 <sys/conf.h>
-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 <sys/bio.h>
#include <sys/buf.h>
OpenPOWER on IntegriCloud