summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-01-23 01:02:28 +0000
committerjhb <jhb@FreeBSD.org>2016-01-23 01:02:28 +0000
commit27f8f705dc0192ad9213cd60a5775d597a07f31c (patch)
tree76aeb0f3cf353817d4fef63c3fa6e12707b70073 /sys/sys
parent488bba9bb8e7eb3166072ce713dae2ba4a3d8f8e (diff)
downloadFreeBSD-src-27f8f705dc0192ad9213cd60a5775d597a07f31c.zip
FreeBSD-src-27f8f705dc0192ad9213cd60a5775d597a07f31c.tar.gz
MFC 286974,291653:
286974: Remove reference to non-existent kern_openat(9). 291653: 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.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/conf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h
index d72b58b..06c38c1 100644
--- a/sys/sys/conf.h
+++ b/sys/sys/conf.h
@@ -297,9 +297,9 @@ void setconf(void);
#define dev2unit(d) ((d)->si_drv0)
-typedef void (*cdevpriv_dtr_t)(void *data);
+typedef void d_priv_dtor_t(void *data);
int devfs_get_cdevpriv(void **datap);
-int devfs_set_cdevpriv(void *priv, cdevpriv_dtr_t dtr);
+int devfs_set_cdevpriv(void *priv, d_priv_dtor_t *dtr);
void devfs_clear_cdevpriv(void);
void devfs_fpdrop(struct file *fp); /* XXX This is not public KPI */
OpenPOWER on IntegriCloud