Lines Matching full:rcu
51 // not-yet-completed RCU grace periods.
151 * RCU_NONIDLE - Indicate idle-loop code that needs RCU readers
152 * @a: Code that RCU needs to pay attention to.
154 * RCU read-side critical sections are forbidden in the inner idle loop,
155 * that is, between the ct_idle_enter() and the ct_idle_exit() -- RCU
160 * will tell RCU that it needs to pay attention, invoke its argument
162 * and then tell RCU to go back to ignoring this CPU. It is permissible
176 * Note a quasi-voluntary context switch for RCU-tasks's benefit.
244 * cond_resched_tasks_rcu_qs - Report potential quiescent states to RCU
247 * report potential quiescent states to RCU-tasks even if the cond_resched()
266 #error "Unknown RCU implementation specified to kernel configuration"
365 "Illegal context switch in RCU read-side critical section"); in rcu_preempt_sleep_check()
376 "Illegal context switch in RCU-bh read-side critical section"); \
378 "Illegal context switch in RCU-sched read-side critical section"); \
392 * multiple pointers markings to match different RCU implementations
410 * unrcu_pointer - mark a pointer as not being RCU protected
416 #define unrcu_pointer(p) __unrcu_pointer(p, __UNIQUE_ID(rcu))
444 #define rcu_dereference_raw(p) __rcu_dereference_raw(p, __UNIQUE_ID(rcu))
447 * RCU_INITIALIZER() - statically initialize an RCU-protected global variable
453 * rcu_assign_pointer() - assign to RCU-protected pointer
457 * Assigns the specified value to the specified RCU-protected
458 * pointer, ensuring that any concurrent RCU readers will see
465 * will be dereferenced by RCU read-side code.
495 * rcu_replace_pointer() - replace an RCU pointer, returning its old value
496 * @rcu_ptr: RCU pointer, whose old value is returned
500 * Perform a replacement, where @rcu_ptr is an RCU-annotated
513 * rcu_access_pointer() - fetch RCU pointer with no dereferencing
516 * Return the value of the specified RCU-protected pointer, but omit the
517 * lockdep checks for being in an RCU read-side critical section. This is
519 * not dereferenced, for example, when testing an RCU-protected pointer
523 * Within an RCU read-side critical section, there is little reason to
534 * the case in the context of the RCU callback that is freeing up the data,
539 #define rcu_access_pointer(p) __rcu_access_pointer((p), __UNIQUE_ID(rcu), __rcu)
550 * An implicit check for being in an RCU read-side critical section
571 * which pointers are protected by RCU and checks that the pointer is
575 __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
583 * This is the RCU-bh counterpart to rcu_dereference_check(). However,
584 * please note that starting in v5.0 kernels, vanilla RCU grace periods
591 __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
599 * This is the RCU-sched counterpart to rcu_dereference_check().
600 * However, please note that starting in v5.0 kernels, vanilla RCU grace
607 __rcu_dereference_check((p), __UNIQUE_ID(rcu), \
612 * The tracing infrastructure traces RCU (we want that), but unfortunately
613 * some of the RCU checks causes tracing to lock up the system.
619 __rcu_dereference_check((p), __UNIQUE_ID(rcu), 1, __rcu)
622 * rcu_dereference_protected() - fetch RCU pointer when updates prevented
626 * Return the value of the specified RCU-protected pointer, but omit
638 __rcu_dereference_protected((p), __UNIQUE_ID(rcu), (c), __rcu)
642 * rcu_dereference() - fetch RCU-protected pointer for dereferencing
650 * rcu_dereference_bh() - fetch an RCU-bh-protected pointer for dereferencing
658 * rcu_dereference_sched() - fetch RCU-sched-protected pointer for dereferencing
666 * rcu_pointer_handoff() - Hand off a pointer from RCU to other mechanism
670 * is handed off from RCU to some other synchronization mechanism, for
688 * rcu_read_lock() - mark the beginning of an RCU read-side critical section
691 * are within RCU read-side critical sections, then the
694 * on one CPU while other CPUs are within RCU read-side critical
695 * sections, invocation of the corresponding RCU callback is deferred
704 * Note, however, that RCU callbacks are permitted to run concurrently
705 * with new RCU read-side critical sections. One way that this can happen
706 * is via the following sequence of events: (1) CPU 0 enters an RCU
708 * an RCU callback, (3) CPU 0 exits the RCU read-side critical section,
709 * (4) CPU 2 enters a RCU read-side critical section, (5) the RCU
710 * callback is invoked. This is legal, because the RCU read-side critical
712 * therefore might be referencing something that the corresponding RCU
714 * RCU callback is invoked.
716 * RCU read-side critical sections may be nested. Any deferred actions
717 * will be deferred until the outermost RCU read-side critical section
721 * following this rule: don't put anything in an rcu_read_lock() RCU
725 * In non-preemptible RCU implementations (pure TREE_RCU and TINY_RCU),
726 * it is illegal to block while in an RCU read-side critical section.
727 * In preemptible RCU implementations (PREEMPT_RCU) in CONFIG_PREEMPTION
728 * kernel builds, RCU read-side critical sections may be preempted,
729 * but explicit blocking is illegal. Finally, in preemptible RCU
730 * implementations in real-time (with -rt patchset) kernel builds, RCU
737 __acquire(RCU); in rcu_read_lock()
745 * way for writers to lock out RCU readers. This is a feature, not
746 * a bug -- this property is what provides RCU's performance benefits.
749 * used as well. RCU does not care how the writers keep out of each
754 * rcu_read_unlock() - marks the end of an RCU read-side critical section.
769 __release(RCU); in rcu_read_unlock()
775 * rcu_read_lock_bh() - mark the beginning of an RCU-bh critical section
778 * Note that anything else that disables softirqs can also serve as an RCU
798 * rcu_read_unlock_bh() - marks the end of a softirq-only RCU critical section
812 * rcu_read_lock_sched() - mark the beginning of a RCU-sched critical section
843 * rcu_read_unlock_sched() - marks the end of a RCU-classic critical section
864 * RCU_INIT_POINTER() - initialize an RCU protected pointer
868 * Initialize an RCU-protected pointer in special cases where readers
874 * RCU readers from concurrently accessing this pointer *or*
887 * will look OK in crash dumps, but any concurrent RCU readers might
891 * If you are creating an RCU-protected linked structure that is accessed
892 * by a single external-to-structure RCU-protected pointer, then you may
893 * use RCU_INIT_POINTER() to initialize the internal RCU-protected
908 * RCU_POINTER_INITIALIZER() - statically initialize an RCU protected pointer
912 * GCC-style initialization for an RCU-protected pointer in a structure field.
929 * Many rcu callbacks functions just call kfree() on the base structure.
1041 * in an RCU read-side critical section that includes a read-side fetch