Linux 内核链表移植(4)

#define hlist_for_each_entry_from(tpos, typeof_tpos, pos, member) \
    for (; pos && prefetch(pos->next) && \
            ((tpos = hlist_entry(pos, typeof_tpos, member)) == tpos); \
        pos = pos->next)

#define hlist_for_each_entry_safe(tpos, typeof_tpos, pos, n, head, member) \
    for (pos = (head)->first; \
        pos && ((n = pos->next) == n) && \
            ((tpos = hlist_entry(pos, typeof_tpos, member)) == tpos); \
        pos = n)

#endif

#endif /* _DH_LIST_H */

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/2543bf701438d4aa277864c63ed849c5.html