diff options
author | Robert Noland <rnoland@2hip.net> | 2009-03-16 00:30:28 -0500 |
---|---|---|
committer | Robert Noland <rnoland@2hip.net> | 2009-03-16 00:30:28 -0500 |
commit | f8f49aa6ec10e281b08279143f2bd999df118147 (patch) | |
tree | 3bfa587bcd8344e6a4144ba20f3be1924458e8f3 /bsd-core | |
parent | 6777c6bb8bb399e48500d742e80822808451010b (diff) |
FreeBSD: Add list_for_each_prev() to our bank of compat functions.
Diffstat (limited to 'bsd-core')
-rw-r--r-- | bsd-core/drm_linux_list.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; \ |