svn commit: r192443 - head/sys/kern
Warner Losh
imp at FreeBSD.org
Wed May 20 16:58:17 UTC 2009
Author: imp
Date: Wed May 20 16:58:16 2009
New Revision: 192443
URL: http://svn.freebsd.org/changeset/base/192443
Log:
We no longer need to use d_thread_t for portability here, switch to
struct thread *.
Modified:
head/sys/kern/subr_bus.c
Modified: head/sys/kern/subr_bus.c
==============================================================================
--- head/sys/kern/subr_bus.c Wed May 20 16:47:40 2009 (r192442)
+++ head/sys/kern/subr_bus.c Wed May 20 16:58:16 2009 (r192443)
@@ -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, in
}
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 *ui
}
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, c
}
static int
-devpoll(struct cdev *dev, int events, d_thread_t *td)
+devpoll(struct cdev *dev, int events, struct thread *td)
{
int revents = 0;
More information about the svn-src-head
mailing list