Add new element at the head of the list. */
| 53 | |
| 54 | /* Add new element at the head of the list. */ |
| 55 | static inline void list_add(struct list_head *newp, struct list_head *head) |
| 56 | { |
| 57 | head->next->prev = newp; |
| 58 | newp->next = head->next; |
| 59 | newp->prev = head; |
| 60 | head->next = newp; |
| 61 | } |
| 62 | |
| 63 | /* Add new element at the tail of the list. */ |
| 64 | static inline void list_add_tail(struct list_head *newp, struct list_head *head) |
no outgoing calls
no test coverage detected