Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171192022
D59292.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D59292.id.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/rculist.h b/sys/compat/linuxkpi/common/include/linux/rculist.h
--- a/sys/compat/linuxkpi/common/include/linux/rculist.h
+++ b/sys/compat/linuxkpi/common/include/linux/rculist.h
@@ -37,7 +37,8 @@
#define list_next_rcu(head) (*((struct list_head **)(&(head)->next)))
#define list_prev_rcu(head) (*((struct list_head **)(&(head)->prev)))
-#define list_for_each_entry_rcu(pos, head, member) \
+/* We are currently ignoring the optional condition to check. */
+#define list_for_each_entry_rcu(pos, head, member, _condition...) \
for (pos = list_entry_rcu((head)->next, typeof(*(pos)), member); \
&(pos)->member != (head); \
pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member))
@@ -47,8 +48,9 @@
&(pos)->member != (head); \
pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member))
+/* This should likely be its own implementation. */
#define list_for_each_entry_lockless(pos, head, member) \
- list_for_each_entry_rcu(pos, head, member)
+ list_for_each_entry_rcu(pos, head, member, true)
static inline void
linux_list_add_rcu(struct list_head *new, struct list_head *prev,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 10, 9:55 AM (9 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37858499
Default Alt Text
D59292.id.diff (1 KB)
Attached To
Mode
D59292: LinuxKPI: rcu: add optional condition to list_for_each_entry_rcu()
Attached
Detach File
Event Timeline
Log In to Comment