diff options
author | jhb <jhb@FreeBSD.org> | 2015-01-29 19:55:33 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-01-29 19:55:33 +0000 |
commit | 9e55ea84e0cb13f874bad49e14ab2f5756f6a65c (patch) | |
tree | 4f35398ee3f3b6e9dd060f9c5e018ced96ceeaf9 /sys/sys/conf.h | |
parent | 1fcfea902b2ae469fc6c8fdbd421f1d1e9497fa7 (diff) | |
download | FreeBSD-src-9e55ea84e0cb13f874bad49e14ab2f5756f6a65c.zip FreeBSD-src-9e55ea84e0cb13f874bad49e14ab2f5756f6a65c.tar.gz |
Remove the d_thread_t compatibility shim provided in 5.0 to handle the
struct thread (<= 4.x) vs struct proc (>= 5.0) argument to cdevsw routines.
It is long past its expiration date.
PR: 196544 (exp-run)
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r-- | sys/sys/conf.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 035a5fd..315551a 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -106,24 +106,6 @@ struct clonedevs; struct vm_object; struct vnode; -/* - * Note: d_thread_t is provided as a transition aid for those drivers - * that treat struct proc/struct thread as an opaque data type and - * exist in substantially the same form in both 4.x and 5.x. Writers - * of drivers that dips into the d_thread_t structure should use - * struct thread or struct proc as appropriate for the version of the - * OS they are using. It is provided in lieu of each device driver - * inventing its own way of doing this. While it does violate style(9) - * in a number of ways, this violation is deemed to be less - * important than the benefits that a uniform API between releases - * gives. - * - * Users of struct thread/struct proc that aren't device drivers should - * not use d_thread_t. - */ - -typedef struct thread d_thread_t; - typedef int d_open_t(struct cdev *dev, int oflags, int devtype, struct thread *td); typedef int d_fdopen_t(struct cdev *dev, int oflags, struct thread *td, struct file *fp); typedef int d_close_t(struct cdev *dev, int fflag, int devtype, struct thread *td); |