[lkml]   [2010]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC, PATCH net-next-2.6] net: introduce a macro to traverse through uc_list easily
    From: Jiri Pirko <>
    Date: Fri, 22 Jan 2010 16:13:02 +0100

    > Therefore that would be good to introduce a macro that can be used to traverse
    > through addresses in the list without caller knowing anything about the type of
    > the list. I think this kind of an abstraction is appropriate on this place.
    > Also during the phase of changing, the macro can use the original list and onc ...
    > What do you think about this? Please comment.

    Yes this is the way to do it, three steps:

    1) Add interface macros that iterate using the existing

    2) Convert drivers to use #1

    3) Convert to list_head

     \ /
      Last update: 2010-01-23 11:03    [W:0.020 / U:24.920 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site