-static inline int rcu_read_lock(void)
-{
- int urcu_parity = get_urcu_qparity();
- urcu_active_readers[urcu_parity]++;
- /*
- * Increment active readers count before accessing the pointer.
- * See force_mb_all_threads().
- */
- barrier();
- return urcu_parity;
-}
-
-static inline void rcu_read_unlock(int urcu_parity)
-{
- barrier();
- /*
- * Finish using rcu before decrementing the pointer.
- * See force_mb_all_threads().
- */
- urcu_active_readers[urcu_parity]--;
-}
-
-extern void *urcu_publish_content(void **ptr, void *new);
+
+extern void rcu_read_lock(void);
+extern void rcu_read_unlock(void);
+
+extern void *rcu_dereference(void *p);
+
+extern void *rcu_assign_pointer_sym(void **p, void *v);
+
+#define rcu_assign_pointer(p, v) \
+ rcu_assign_pointer_sym((void **)(p), (v))
+
+extern void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new);
+#define rcu_cmpxchg_pointer(p, old, _new) \
+ rcu_cmpxchg_pointer_sym((void **)(p), (old), (_new))
+
+extern void *rcu_xchg_pointer_sym(void **p, void *v);
+#define rcu_xchg_pointer(p, v) \
+ rcu_xchg_pointer_sym((void **)(p), (v))
+
+extern void *rcu_publish_content_sym(void **p, void *v);
+#define rcu_publish_content(p, v) \
+ rcu_publish_content_sym((void **)(p), (v))
+
+#endif /* !_LGPL_SOURCE */
+
+extern void synchronize_rcu(void);