Commit ebaf76b5 authored by Jiri Pirko's avatar Jiri Pirko Committed by Stephen Hemminger

list: add list_add_tail helper

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
parent f1239ca1
......@@ -33,6 +33,11 @@ static inline void list_add(struct list_head *new, struct list_head *head)
__list_add(new, head, head->next);
}
static inline void list_add_tail(struct list_head *new, struct list_head *head)
{
__list_add(new, head->prev, head);
}
static inline void __list_del(struct list_head *prev, struct list_head *next)
{
next->prev = prev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment