diff options
author | phk <phk@FreeBSD.org> | 2003-03-02 13:35:30 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-03-02 13:35:30 +0000 |
commit | 4ad4dab84a5c41ab4e85053d6d18796fedc30f87 (patch) | |
tree | 564ba32cae6c050fc6c569a3d085b5ea70a69e56 /sys/kern/kern_conf.c | |
parent | 7171542229216f6f35b5cf4670a0b368b0203e68 (diff) | |
download | FreeBSD-src-4ad4dab84a5c41ab4e85053d6d18796fedc30f87.zip FreeBSD-src-4ad4dab84a5c41ab4e85053d6d18796fedc30f87.tar.gz |
NODEVFS cleanup:
Replace devfs_{create,destroy} hooks with direct function calls.
Diffstat (limited to 'sys/kern/kern_conf.c')
-rw-r--r-- | sys/kern/kern_conf.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index f0a13c1..3d96ce4 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -62,9 +62,6 @@ static LIST_HEAD(, cdev) dev_hash[DEVT_HASH]; static LIST_HEAD(, cdev) dev_free; -devfs_create_t *devfs_create_hook; -devfs_destroy_t *devfs_destroy_hook; - static int ready_for_devs; static int free_devt; @@ -332,8 +329,7 @@ make_dev(struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, const dev->si_mode = perms; dev->si_flags |= SI_NAMED; - if (devfs_create_hook) - devfs_create_hook(dev); + devfs_create(dev); return (dev); } @@ -378,8 +374,7 @@ make_dev_alias(dev_t pdev, const char *fmt, ...) } va_end(ap); - if (devfs_create_hook) - devfs_create_hook(dev); + devfs_create(dev); return (dev); } @@ -407,8 +402,7 @@ destroy_dev(dev_t dev) return; } - if (devfs_destroy_hook) - devfs_destroy_hook(dev); + devfs_destroy(dev); if (dev->si_flags & SI_CHILD) { LIST_REMOVE(dev, si_siblings); dev->si_flags &= ~SI_CHILD; |