summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-12-02 18:27:30 +0000
committerjhb <jhb@FreeBSD.org>2015-12-02 18:27:30 +0000
commitf4698eb999d128556b2bc7fd99cc91df3cb3530d (patch)
treed85566747f3ab9fcf2425a68b1bc180e88614717 /sys/fs
parent9b472b7eb57ce751661cf3206c82b995e0ddff9a (diff)
downloadFreeBSD-src-f4698eb999d128556b2bc7fd99cc91df3cb3530d.zip
FreeBSD-src-f4698eb999d128556b2bc7fd99cc91df3cb3530d.tar.gz
The cdevpriv_dtr_t typedef was not able to be used in a function prototype
like the various d_*_t typedefs since it declared a function pointer rather than a function. Add a new d_priv_dtor_t typedef that declares the function and can be used as a function prototype. The previous typedef wasn't useful outside of the cdevpriv implementation, so retire it. The name d_priv_dtor_t was chosen to be more consistent with cdev methods since it is commonly used in place of d_close_t even though it is not a direct pointer in struct cdevsw. Reviewed by: kib, imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D4340
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index d27af46..5c45bd8 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -151,7 +151,7 @@ devfs_get_cdevpriv(void **datap)
}
int
-devfs_set_cdevpriv(void *priv, cdevpriv_dtr_t priv_dtr)
+devfs_set_cdevpriv(void *priv, d_priv_dtor_t *priv_dtr)
{
struct file *fp;
struct cdev_priv *cdp;
OpenPOWER on IntegriCloud