Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110212477
D30025.id88330.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
619 B
Referenced Files
None
Subscribers
None
D30025.id88330.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/rcupdate.h b/sys/compat/linuxkpi/common/include/linux/rcupdate.h
--- a/sys/compat/linuxkpi/common/include/linux/rcupdate.h
+++ b/sys/compat/linuxkpi/common/include/linux/rcupdate.h
@@ -97,6 +97,13 @@
(uintptr_t)(v)); \
} while (0)
+#define rcu_replace_pointer(rcu, ptr, c) \
+({ \
+ typeof(ptr) __tmp = rcu_dereference_protected(rcu, c); \
+ rcu_assign_pointer(rcu, ptr); \
+ __tmp; \
+})
+
#define rcu_swap_protected(rcu, ptr, c) do { \
typeof(ptr) p = rcu_dereference_protected(rcu, c); \
rcu_assign_pointer(rcu, ptr); \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 16, 5:00 AM (13 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16669434
Default Alt Text
D30025.id88330.diff (619 B)
Attached To
Mode
D30025: linuxkpi: Implement rcu_replace_pointer() macro
Attached
Detach File
Event Timeline
Log In to Comment