Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164058057
D43021.id131338.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
596 B
Referenced Files
None
Subscribers
None
D43021.id131338.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -225,6 +225,11 @@
#define list_for_each_prev(p, h) for (p = (h)->prev; p != (h); p = (p)->prev)
+#define list_for_each_prev_safe(p, n, h) \
+ for (p = (h)->prev, n = (p)->prev; \
+ p != (h); \
+ p = n, n = (p)->prev)
+
#define list_for_each_entry_from_reverse(p, h, field) \
for (; &p->field != (h); \
p = list_prev_entry(p, field))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 29, 8:49 AM (13 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35691338
Default Alt Text
D43021.id131338.diff (596 B)
Attached To
Mode
D43021: linuxkpi: Add `list_for_each_prev_safe()` in <linux/list.h>
Attached
Detach File
Event Timeline
Log In to Comment