Re: [RFC/PATCH] Introduce list_get() and list_get_tail()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Sat, 08 Jul 2006 16:16:25 +0200, Arjan van de Ven a écrit :

> On Sat, 2006-07-08 at 15:58 +0200, Andi Kleen wrote:
>> Dmitry Torokhov <[email protected]> writes:
>> 
>> > From: Dmitry Torokhov <[email protected]>
>> > 
>> > 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()
Yes from the name I would expect they remove the entry from the list...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux