diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-09-12 13:12:28 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-10-04 12:43:53 +0200 |
commit | 924f8f5af31423529cc3940cb2ae9fee736b7517 (patch) | |
tree | 5d6866171b3fc428ebb64720917517534aa80670 /include/linux/llist.h | |
parent | 38aaf8090d34b623b7919d8c933f6e938c9bf44b (diff) | |
download | blackbird-obmc-linux-924f8f5af31423529cc3940cb2ae9fee736b7517.tar.gz blackbird-obmc-linux-924f8f5af31423529cc3940cb2ae9fee736b7517.zip |
llist: Add llist_next()
So we don't have to expose the struct list_node member.
Cc: Huang Ying <ying.huang@intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1315836348.26517.41.camel@twins
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/llist.h')
-rw-r--r-- | include/linux/llist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/llist.h b/include/linux/llist.h index 27bbdf5ddf82..e2e96d04ee48 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h @@ -138,6 +138,11 @@ static inline bool llist_empty(const struct llist_head *head) return ACCESS_ONCE(head->first) == NULL; } +static inline struct llist_node *llist_next(struct llist_node *node) +{ + return node->next; +} + /** * llist_add - add a new entry * @new: new entry to be added |