Retire revoke_and_destroy_dev() with extreme prejudice.
This commit is contained in:
parent
7b75296fe9
commit
fa53ae2e5c
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user