From f8f49aa6ec10e281b08279143f2bd999df118147 Mon Sep 17 00:00:00 2001 From: Robert Noland Date: Mon, 16 Mar 2009 00:30:28 -0500 Subject: FreeBSD: Add list_for_each_prev() to our bank of compat functions. --- bsd-core/drm_linux_list.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bsd-core') diff --git a/bsd-core/drm_linux_list.h b/bsd-core/drm_linux_list.h index 7c6a4474..15c1b6ee 100644 --- a/bsd-core/drm_linux_list.h +++ b/bsd-core/drm_linux_list.h @@ -64,6 +64,10 @@ list_del(struct list_head *entry) { #define list_for_each(entry, head) \ for (entry = (head)->next; entry != head; entry = (entry)->next) +#define list_for_each_prev(entry, head) \ + for (entry = (head)->prev; entry != (head); \ + entry = entry->prev) + #define list_for_each_safe(entry, temp, head) \ for (entry = (head)->next, temp = (entry)->next; \ entry != head; \ -- cgit v1.2.3