PERFORCE change 140384 for review

John Birrell jb at FreeBSD.org
Tue Apr 22 05:52:06 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=140384

Change 140384 by jb at freebsd3 on 2008/04/22 05:51:27

	Update the BSD ioctl function to suit the IFopensolaris.
	
	It's a shame that BSD and SYSV ioctl designs differ so much that we have
	to have a separate code base. Sigh.

Affected files ...

.. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#22 edit

Differences ...

==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_ioctl.c#22 (text+ko) ====

@@ -342,13 +342,9 @@
 		 * cue to reevaluate our enablings.
 		 */
 		if (p->dof == NULL) {
-			mutex_enter(&cpu_lock);
-			mutex_enter(&dtrace_lock);
-			err = dtrace_enabling_matchstate(state, &p->n_matched);
-			mutex_exit(&dtrace_lock);
-			mutex_exit(&cpu_lock);
+			dtrace_enabling_matchall();
 
-			return (err);
+			return (0);
 		}
 
 		if ((dof = dtrace_dof_copyin((uintptr_t) p->dof, &rval)) == NULL)


More information about the p4-projects mailing list