Lines Matching defs:item
53 static inline void list_inithead(struct list_head *item)
55 item->prev = item;
56 item->next = item;
60 * Prepend an item to a list
62 * @param item The element to add to the list
65 static inline void list_add(struct list_head *item, struct list_head *list)
67 item->prev = list;
68 item->next = list->next;
69 list->next->prev = item;
70 list->next = item;
74 * Append an item to a list
76 * @param item The element to add to the list
79 static inline void list_addtail(struct list_head *item, struct list_head *list)
81 item->next = list;
82 item->prev = list->prev;
83 list->prev->next = item;
84 list->prev = item;
101 static inline void list_del(struct list_head *item)
103 item->prev->next = item->next;
104 item->next->prev = item->prev;
105 item->prev = item->next = NULL;
108 static inline void list_delinit(struct list_head *item)
110 item->prev->next = item->next;
111 item->next->prev = item->prev;
112 item->next = item;
113 item->prev = item;
178 * Move an item from one place in a list to another
180 * The item can be in this list, or in another.
182 * @param item The item to move
183 * @param loc The element to put the item in front of
185 static inline void list_move_to(struct list_head *item, struct list_head *loc) {
186 list_del(item);
187 list_add(item, loc);