diff options
author | phk <phk@FreeBSD.org> | 2005-03-15 12:58:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-03-15 12:58:08 +0000 |
commit | 7e1186083ad2e468510b4b42d341bf66c6285390 (patch) | |
tree | bcf3df760839017ec8ae6d5a566f1b959b1024fe /sys | |
parent | 7200c222c77db6ddd2e49871d0bf38faad61437d (diff) | |
download | FreeBSD-src-7e1186083ad2e468510b4b42d341bf66c6285390.zip FreeBSD-src-7e1186083ad2e468510b4b42d341bf66c6285390.tar.gz |
Remove findcdev().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_conf.c | 19 | ||||
-rw-r--r-- | sys/sys/systm.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index d4b311e..d29e319 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -317,25 +317,6 @@ freedev(struct cdev *dev) free(dev, M_DEVT); } -struct cdev * -findcdev(dev_t udev) -{ - struct cdev *si; - int hash; - - mtx_assert(&devmtx, MA_NOTOWNED); - if (udev == NODEV) - return (NULL); - dev_lock(); - hash = udev % DEVT_HASH; - LIST_FOREACH(si, &dev_hash[hash], si_hash) { - if (si->si_drv0 == udev) - break; - } - dev_unlock(); - return (si); -} - int uminor(dev_t dev) { diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 40fdfbf..f18e7c6 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -309,7 +309,6 @@ struct cdev; int major(struct cdev *x); int minor(struct cdev *x); dev_t dev2udev(struct cdev *x); -struct cdev *findcdev(dev_t x); int uminor(dev_t dev); int umajor(dev_t dev); const char *devtoname(struct cdev *cdev); |