Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2002 09:29:00 -0700 (PDT)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Daniel Eischen <eischen@pcnet1.pcnet.com>
Cc:        Jonathan Lemon <jlemon@flugsvamp.com>, iedowse@maths.tcd.ie, current@FreeBSD.ORG, julian@elischer.org
Subject:   Re: KSE status report 
Message-ID:  <200207021629.g62GT0iN052159@apollo.backplane.com>
References:   <Pine.GSO.4.10.10207021212570.15661-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help

:...
:another queue using the same link.  There are other places in libc_r
:where we do re-use the same link (remove from one list and add to
:another), but roll our own loop in that case:
:
:	for (p = TAILQ_FIRST(&q); p != NULL; p = p_next) {
:		p_next = TAILQ_NEXT(p, p_qe);
:		...
:		TAILQ_REMOVE(&q, pthread, p_qe);
:		...
:	}
:
:-- 
:Dan Eischen

    Why don't we simply conditionalize sys/queue.h for the _KERNEL

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

Index: sys/sys/queue.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/queue.h,v
retrieving revision 1.50
diff -u -r1.50 queue.h
--- sys/sys/queue.h	29 Jun 2002 19:16:10 -0000	1.50
+++ sys/sys/queue.h	2 Jul 2002 16:28:24 -0000
@@ -102,7 +102,11 @@
  * _REMOVE		+	+	+	+
  *
  */
-#define QUEUE_MACRO_DEBUG 0
+#ifdef _KERNEL
+#define QUEUE_MACRO_DEBUG 0	/* change this for kernel debugging */
+#else
+#define QUEUE_MACRO_DEBUG 0	/* leave alone for userland compatibility */
+#endif
 #if QUEUE_MACRO_DEBUG
 /* Store the last 2 places the queue element or head was altered */
 struct qm_trace {

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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