Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 2009 16:58:17 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r192443 - head/sys/kern
Message-ID:  <200905201658.n4KGwHYR037398@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905201658.n4KGwHYR037398>