mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 03:59:55 +00:00
list: add list_add_tail helper
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
This commit is contained in:
parent
f1239ca1f9
commit
ebaf76b55e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user