Page MenuHomeFreeBSD

D30025.id88310.diff
No OneTemporary

D30025.id88310.diff

Index: sys/compat/linuxkpi/common/include/linux/rcupdate.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/rcupdate.h
+++ 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

Mime Type
text/plain
Expires
Tue, Jan 14, 4:15 AM (19 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15790896
Default Alt Text
D30025.id88310.diff (622 B)

Event Timeline