[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] mini-os is missing list_top in its list.h
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216392279 -3600 # Node ID 60828077e1759c3a9d9506067597a8c1330c4afb # Parent 092a15aa2430dedafc98bae7d52babb90df071a1 mini-os is missing list_top in its list.h Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- extras/mini-os/include/list.h | 6 ++++++ 1 files changed, 6 insertions(+) diff -r 092a15aa2430 -r 60828077e175 extras/mini-os/include/list.h --- a/extras/mini-os/include/list.h Fri Jul 18 15:03:55 2008 +0100 +++ b/extras/mini-os/include/list.h Fri Jul 18 15:44:39 2008 +0100 @@ -23,6 +23,12 @@ struct list_head { #define INIT_LIST_HEAD(ptr) do { \ (ptr)->next = (ptr); (ptr)->prev = (ptr); \ } while (0) + +#define list_top(head, type, member) \ +({ \ + struct list_head *_head = (head); \ + list_empty(_head) ? NULL : list_entry(_head->next, type, member); \ +}) /* * Insert a new entry between two known consecutive entries. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |