From owner-freebsd-current Tue Jul 2 14: 8:25 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88BE737B788 for ; Tue, 2 Jul 2002 14:06:12 -0700 (PDT) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B35F4426B for ; Tue, 2 Jul 2002 10:20:15 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020702172014.BUCH15755.rwcrmhc53.attbi.com@InterJet.elischer.org>; Tue, 2 Jul 2002 17:20:14 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA97465; Tue, 2 Jul 2002 10:05:59 -0700 (PDT) Date: Tue, 2 Jul 2002 10:05:57 -0700 (PDT) From: Julian Elischer To: Matthew Dillon Cc: Daniel Eischen , Jonathan Lemon , iedowse@maths.tcd.ie, current@FreeBSD.ORG Subject: Re: KSE status report In-Reply-To: <200207021629.g62GT0iN052159@apollo.backplane.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I put the -1 under the conditional so it should be 'gone' now. we'll see it makes a difference. On Tue, 2 Jul 2002, Matthew Dillon wrote: > > :... > :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 > > > 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