lkml.org 
[lkml]   [2006]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC/PATCH] Introduce list_get() and list_get_tail()
From
Date
On Sat, 2006-07-08 at 15:58 +0200, Andi Kleen wrote:
> Dmitry Torokhov <dtor@insightbb.com> writes:
>
> > From: Dmitry Torokhov <dtor@mail.ru>
> >
> > Add primitives to access first and last elements of a list instead
> > of accessng pointers directly.
>
> Wouldn't that be beter named list_first() and list_last() then?
> _get is like _do and usually not very descriptive.

and _get tends to imply a reference count as well; I'm with Andi on
this.. list_first() and list_last()

-
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-08 16:19    [W:0.129 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site