]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/files/linux-2.4.18-list_move.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / files / linux-2.4.18-list_move.patch
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
3 @@ -105,6 +105,29 @@
4  }
5  
6  /**
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
10 + */
11 +static inline void list_move(struct list_head *list, struct list_head *head)
12 +{
13 +        __list_del(list->prev, list->next);
14 +        list_add(list, head);
15 +}
16 +
17 +/**
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
21 + */
22 +static inline void list_move_tail(struct list_head *list,
23 +                                 struct list_head *head)
24 +{
25 +        __list_del(list->prev, list->next);
26 +        list_add_tail(list, head);
27 +}
28 +
29 +/**
30   * list_empty - tests whether a list is empty
31   * @head: the list to test.
32   */