diff options
author | phk <phk@FreeBSD.org> | 2002-09-27 18:27:10 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-27 18:27:10 +0000 |
commit | 834ddd1bcc092e4a26f16724892636b249316d70 (patch) | |
tree | b0967d8a8cefb34751a29b420ac0574c8e7496f7 /sys/kern/kern_conf.c | |
parent | 8b9b57067238d550b614cd13698959954d025a3f (diff) | |
download | FreeBSD-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/kern_conf.c')
-rw-r--r-- | sys/kern/kern_conf.c | 12 |
1 files changed, 6 insertions, 6 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; |