summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-09-15 08:01:57 +0000
committerphk <phk@FreeBSD.org>2005-09-15 08:01:57 +0000
commit4583eb76103532bc386b6c8047ed52500bd62473 (patch)
treec9da15751a0e6415c3ac08d8dbe2e567ab190e5e /sys
parenta543c5b761d580a67a1027a2e3a0578864c4db1b (diff)
downloadFreeBSD-src-4583eb76103532bc386b6c8047ed52500bd62473.zip
FreeBSD-src-4583eb76103532bc386b6c8047ed52500bd62473.tar.gz
Retire unused dev_named() function.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_conf.c13
-rw-r--r--sys/sys/conf.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index cf47c7c..a6fcf83 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -604,19 +604,6 @@ make_dev_cred(struct cdevsw *devsw, int minornr, struct ucred *cr, uid_t uid,
return (dev);
}
-int
-dev_named(struct cdev *pdev, const char *name)
-{
- struct cdev *cdev;
-
- if (strcmp(devtoname(pdev), name) == 0)
- return (1);
- LIST_FOREACH(cdev, &pdev->si_children, si_siblings)
- if (strcmp(devtoname(cdev), name) == 0)
- return (1);
- return (0);
-}
-
void
dev_depends(struct cdev *pdev, struct cdev *cdev)
{
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 5ef1521..1ceadc0 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -247,7 +247,6 @@ int count_dev(struct cdev *_dev);
void destroy_dev(struct cdev *_dev);
struct cdevsw *dev_refthread(struct cdev *_dev);
void dev_relthread(struct cdev *_dev);
-int dev_named(struct cdev *_pdev, const char *_name);
void dev_depends(struct cdev *_pdev, struct cdev *_cdev);
void dev_ref(struct cdev *dev);
void dev_refl(struct cdev *dev);
OpenPOWER on IntegriCloud