| 21 | } |
| 22 | |
| 23 | static void __list_add(struct list_head *new_node, struct list_head *prev, struct list_head *next) { |
| 24 | next->prev = new_node; |
| 25 | new_node->next = next; |
| 26 | new_node->prev = prev; |
| 27 | prev->next = new_node; |
| 28 | } |
| 29 | |
| 30 | static inline void list_add(struct list_head *new_node, struct list_head *head) { |
| 31 | __list_add(new_node, head, head->next); |