Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182379
b: refs/heads/master
c: 5908cdc
h: refs/heads/master
i:
  182377: 9f435e3
  182375: 0d0f205
v: v3
  • Loading branch information
Frederic Weisbecker committed Jan 16, 2010
1 parent 2dc1102 commit a3aec35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 889ff0150661512d79484219612b7e2e024b6c07
refs/heads/master: 5908cdc85eb30f8d07f2cb11d4a62334d7229048
14 changes: 14 additions & 0 deletions trunk/include/linux/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,20 @@ static inline int list_empty_careful(const struct list_head *head)
return (next == head) && (next == head->prev);
}

/**
* list_rotate_left - rotate the list to the left
* @head: the head of the list
*/
static inline void list_rotate_left(struct list_head *head)
{
struct list_head *first;

if (!list_empty(head)) {
first = head->next;
list_move_tail(first, head);
}
}

/**
* list_is_singular - tests whether a list has just one entry.
* @head: the list to test.
Expand Down

0 comments on commit a3aec35

Please sign in to comment.