lkml.org 
[lkml]   [2006]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCH] Introduce list_get() and list_get_tail()
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-11 20:01    [W:0.032 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site