简介
nothing
API
LIST_HEAD(linked_list);
INIT_LIST_HEAD(struct list_head *list);
inline void list_add(struct list_head *new, struct list_head *head);
inline void list_add_tail(struct list_head *new, struct list_head *head);
inline void list_del(struct list_head *entry);
inline void list_del_init(struct list_head *entry);
inline void list_replace(struct list_head *old, struct list_head *new);
inline void list_replace_init(struct list_head *old, struct list_head *new);
inline void list_move(struct list_head *list, struct list_head *head);
inline void list_move_tail(struct list_head *list, struct list_head *head);
inline void list_rotate_left(struct list_head *head);
inline int list_is_last(const struct list_head *list, const struct list_head *head);
inline int list_empty(const struct list_head *head);
inline int list_is_singular(const struct list_head *head);
inline void list_cut_position(struct list_head *list, struct list_head *head, struct list_head *entry);
inline void list_splice(const struct list_head *list, struct list_head *head);
遍历链表
list_entry(ptr, type, member);
list_for_each(pos, head);
list_for_each_entry(pos, head, member);
list_for_each_entry_safe ( pos, n, head, member);
list_for_each_prev(pos, head);
list_for_each_entry_reverse(pos, head, member);