Pavel Emelianov writes:
 > There are many places in the kernel where the construction like
 > 
 >    foo = list_entry(head->next, struct foo_struct, list);
 > 
 > are used. 
 > The code might look more descriptive and neat if using the macro
 > 
 >    list_first_entry(head, type, member) \
 >              list_entry((head)->next, type, member)

Won't list_next_entry() be more descriptive name for that?

Nikita.

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to