From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: "Josef Sipek" <jsipek@fsl.cs.sunysb.edu>
Cc: "Arjan van de Ven" <arjan@infradead.org>,
"Andi Kleen" <ak@suse.de>, "Andrew Morton" <akpm@osdl.org>,
linux-kernel@vger.kernel.org, "Arnd Bergmann" <arnd@arndb.de>
Subject: Re: [RFC/PATCH] Introduce list_get() and list_get_tail()
Date: Tue, 11 Jul 2006 13:58:41 -0400 [thread overview]
Message-ID: <d120d5000607111058k1afb2486rca176248fa8bdc74@mail.gmail.com> (raw)
In-Reply-To: <20060711174331.GA1666@filer.fsl.cs.sunysb.edu>
On 7/11/06, Josef Sipek <jsipek@fsl.cs.sunysb.edu> wrote:
> On Sat, Jul 08, 2006 at 11:28:47PM -0400, Dmitry Torokhov wrote:
> ...
> > +#define list_next_entry list_first_entry
>
> list_next_entry, that sounds almost as something which given any list_head
> will give you the next entry. That's all fine until you give it the last
> list_head in the list - you'll try to use list_entry on a list_head that's
> not part of a struct but is the head of the list instead.
>
> > +#define list_prev_entry list_last_entry
>
> Ditto.
The same could be said about regular list_entry(), however we do have
it and it is pretty useful.
--
Dmitry
next prev parent reply other threads:[~2006-07-11 17:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-08 5:24 Dmitry Torokhov
2006-07-08 13:58 ` Andi Kleen
2006-07-08 14:16 ` Arjan van de Ven
2006-07-08 17:02 ` Matthieu CASTET
2006-07-09 3:28 ` Dmitry Torokhov
2006-07-11 17:43 ` Josef Sipek
2006-07-11 17:58 ` Dmitry Torokhov [this message]
2006-07-08 18:31 ` Arnd Bergmann
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=d120d5000607111058k1afb2486rca176248fa8bdc74@mail.gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=arnd@arndb.de \
--cc=jsipek@fsl.cs.sunysb.edu \
--cc=linux-kernel@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®