1 --- linux/include/linux/list.h~ 2001-12-21 17:42:03.000000000 +0000
2 +++ linux/include/linux/list.h 2004-06-14 23:41:33.000000000 +0100
7 + * list_move - delete from one list and add as another's head
8 + * @list: the entry to move
9 + * @head: the head that will precede our entry
11 +static inline void list_move(struct list_head *list, struct list_head *head)
13 + __list_del(list->prev, list->next);
14 + list_add(list, head);
18 + * list_move_tail - delete from one list and add as another's tail
19 + * @list: the entry to move
20 + * @head: the head that will follow our entry
22 +static inline void list_move_tail(struct list_head *list,
23 + struct list_head *head)
25 + __list_del(list->prev, list->next);
26 + list_add_tail(list, head);
30 * list_empty - tests whether a list is empty
31 * @head: the list to test.