From: Rik van Riel <riel@conectiva.com.br> To: Lightweight Patch Manager <patch@luckynet.dynu.com> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Tomas Szepe <szepe@pinerecords.com>, Ingo Molnar <mingo@elte.hu> Subject: Re: [PATCH][2.5] Single linked lists for Linux,v2 Date: Wed, 25 Sep 2002 21:08:02 -0300 (BRT) [thread overview] Message-ID: <Pine.LNX.4.44L.0209252107110.22735-100000@imladris.surriel.com> (raw) In-Reply-To: <20020925225026.96C153@hawkeye.luckynet.adm> On Wed, 25 Sep 2002, Lightweight Patch Manager wrote: > Again single linked lists... And again with errors ;) > +#define INIT_SLIST_HEAD(name) \ > + (name->next = name) > + > +#define SLIST_HEAD(type,name) \ > + typeof(type) name = INIT_SLIST_HEAD(name) Fun, so the list head points to itself ... > +#define slist_for_each(pos, head) \ > + for (pos = head; pos && ({ prefetch(pos->next); 1; }); \ > + pos = pos->next) ... imagine what that would do in combination with this macro. Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ Spamtraps of the month: september@surriel.com trac@trac.org
next prev parent reply other threads:[~2002-09-26 0:03 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-09-25 22:50 Lightweight Patch Manager 2002-09-25 23:02 ` Thunder from the hill 2002-09-26 0:08 ` Rik van Riel [this message] 2002-09-26 6:36 ` Thunder from the hill 2002-09-26 14:58 ` Rik van Riel 2002-09-26 15:39 ` Thunder from the hill 2002-09-26 16:17 ` Nicolas Pitre 2002-09-26 16:37 ` Rik van Riel
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Pine.LNX.4.44L.0209252107110.22735-100000@imladris.surriel.com \ --to=riel@conectiva.com.br \ --cc=linux-kernel@vger.kernel.org \ --cc=mingo@elte.hu \ --cc=patch@luckynet.dynu.com \ --cc=szepe@pinerecords.com \ --subject='Re: [PATCH][2.5] Single linked lists for Linux,v2' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).