From owner-freebsd-current Tue Jul 2 9:29: 7 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 C55F737B400 for ; Tue, 2 Jul 2002 09:29:03 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AF9543E2F for ; Tue, 2 Jul 2002 09:29:03 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.4/8.12.3) with ESMTP id g62GT0T4052160; Tue, 2 Jul 2002 09:29:00 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.4/8.12.3/Submit) id g62GT0iN052159; Tue, 2 Jul 2002 09:29:00 -0700 (PDT) (envelope-from dillon) Date: Tue, 2 Jul 2002 09:29:00 -0700 (PDT) From: Matthew Dillon Message-Id: <200207021629.g62GT0iN052159@apollo.backplane.com> To: Daniel Eischen Cc: Jonathan Lemon , iedowse@maths.tcd.ie, current@FreeBSD.ORG, julian@elischer.org Subject: Re: KSE status report References: 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 :... :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