aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-01-14 14:04:29 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-01-14 14:04:29 +0000
commit07dbde6777f2861e380f81f84baf1ca63a3996e9 (patch)
treec8cfae0b952598052767f1b3247322249ead54e6 /sys/sys/conf.h
parentc24341d2e3f265ca594b82d3a43df2bc41921105 (diff)
downloadsrc-07dbde6777f2861e380f81f84baf1ca63a3996e9.tar.gz
src-07dbde6777f2861e380f81f84baf1ca63a3996e9.zip
Add a kernel function to delist our kernel character devices, so that
the device name can be re-used right away in case we are destroying the character devices in the background. MFC after: 4 days Reported by: dchagin@
Notes
Notes: svn path=/head/; revision=277179
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r--sys/sys/conf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index 68e9d0f2c718..035a5fd640ff 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -245,6 +245,7 @@ void clone_cleanup(struct clonedevs **);
int clone_create(struct clonedevs **, struct cdevsw *, int *unit, struct cdev **dev, int extra);
int count_dev(struct cdev *_dev);
+void delist_dev(struct cdev *_dev);
void destroy_dev(struct cdev *_dev);
int destroy_dev_sched(struct cdev *dev);
int destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg);