1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

We no longer need to use d_thread_t for portability here, switch to

struct thread *.
This commit is contained in:
Warner Losh 2009-05-20 16:58:16 +00:00
parent 1de9b53249
commit 248343f9d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192443

View File

@ -403,7 +403,7 @@ devinit(void)
}
static int
devopen(struct cdev *dev, int oflags, int devtype, d_thread_t *td)
devopen(struct cdev *dev, int oflags, int devtype, struct thread *td)
{
if (devsoftc.inuse)
return (EBUSY);
@ -415,7 +415,7 @@ devopen(struct cdev *dev, int oflags, int devtype, d_thread_t *td)
}
static int
devclose(struct cdev *dev, int fflag, int devtype, d_thread_t *td)
devclose(struct cdev *dev, int fflag, int devtype, struct thread *td)
{
devsoftc.inuse = 0;
mtx_lock(&devsoftc.mtx);
@ -464,7 +464,7 @@ devread(struct cdev *dev, struct uio *uio, int ioflag)
}
static int
devioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, d_thread_t *td)
devioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
{
switch (cmd) {
@ -494,7 +494,7 @@ devioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, d_thread_t *td)
}
static int
devpoll(struct cdev *dev, int events, d_thread_t *td)
devpoll(struct cdev *dev, int events, struct thread *td)
{
int revents = 0;