Retire revoke_and_destroy_dev() with extreme prejudice.

This commit is contained in:
phk 2003-09-28 20:50:36 +00:00
parent 7b75296fe9
commit fa53ae2e5c
3 changed files with 0 additions and 15 deletions

View File

@ -451,19 +451,6 @@ make_dev_alias(dev_t pdev, const char *fmt, ...)
return (dev);
}
void
revoke_and_destroy_dev(dev_t dev)
{
struct vnode *vp;
GIANT_REQUIRED;
vp = SLIST_FIRST(&dev->si_hlist);
if (vp != NULL)
VOP_REVOKE(vp, REVOKEALL);
destroy_dev(dev);
}
void
destroy_dev(dev_t dev)
{

View File

@ -290,7 +290,6 @@ DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
int count_dev(dev_t _dev);
void destroy_dev(dev_t _dev);
void revoke_and_destroy_dev(dev_t _dev);
struct cdevsw *devsw(dev_t _dev);
const char *devtoname(dev_t _dev);
int dev_named(dev_t _pdev, const char *_name);

View File

@ -290,7 +290,6 @@ DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
int count_dev(dev_t _dev);
void destroy_dev(dev_t _dev);
void revoke_and_destroy_dev(dev_t _dev);
struct cdevsw *devsw(dev_t _dev);
const char *devtoname(dev_t _dev);
int dev_named(dev_t _pdev, const char *_name);