Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Feb 2001 09:04:38 -0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/awi awi.c src/sys/dev/ed if_ed.c src/sys/dev/fe if_fe.c src/sys/dev/ie if_ie.c src/sys/dev/lnc if_lnc.c src/sys/dev/pdq pdq_ifsubr.c src/sys/dev/ray if_ray.c src/sys/dev/sn if_sn.c src/sys/dev/snc dp83932.c src/sys/dev/usb ... 
Message-ID:  <200102061704.f16H4ct48889@mobile.wemm.org>
In-Reply-To: <200102061643.LAA32336@khavrinen.lcs.mit.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Wollman wrote:
> <<On Tue, 06 Feb 2001 08:41:00 -0800, Peter Wemm <peter@netplex.com.au> said:
> 
> > I thought LIST was doubly linked, which means we should be able to have a
> > LIST_PREV(), right?  SLIST is singly linked as is STAILQ.
> 
> There is a LIST_PREV macro, but in order to traverse the entire list
> backwards, one must first get to the very end, which requires a loop
> in LIST and a single dereference in TAILQ.

Do you know where we can get one?  For completeness we should have it and it
is missing from our queue.h.  It could probably be a simple enough variant
of the recently added TAILQ_PREV() macro - which still gives me a headache
trying to understand. :-)

> -GAWollman
> 
> 

Cheers,
-Peter
--
Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au
"All of this is for nothing if we don't go to the stars" - JMS/B5



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




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