mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-27 16:39:08 +00:00
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)
This commit is contained in:
parent
93929f253d
commit
304d020165
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277897
@ -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);
|
||||
|
@ -58,7 +58,7 @@
|
||||
* in the range 5 to 9.
|
||||
*/
|
||||
#undef __FreeBSD_version
|
||||
#define __FreeBSD_version 1100056 /* Master, propagated to newvers */
|
||||
#define __FreeBSD_version 1100057 /* Master, propagated to newvers */
|
||||
|
||||
/*
|
||||
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
|
||||
|
Loading…
Reference in New Issue
Block a user