include/linux/rcutiny.h
Source file repositories/reference/linux-study-clean/include/linux/rcutiny.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/rcutiny.h- Extension
.h- Size
- 3854 bytes
- Lines
- 145
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/param.h
Detected Declarations
struct rcu_gp_oldstatefunction same_state_synchronize_rcu_fullfunction get_state_synchronize_rcu_fullfunction start_poll_synchronize_rcu_fullfunction poll_state_synchronize_rcu_fullfunction cond_synchronize_rcufunction cond_synchronize_rcu_fullfunction start_poll_synchronize_rcu_expeditedfunction start_poll_synchronize_rcu_expedited_fullfunction cond_synchronize_rcu_expeditedfunction cond_synchronize_rcu_expedited_fullfunction synchronize_rcu_expeditedfunction rcu_softirq_qsfunction rcu_needs_cpufunction rcu_request_urgent_qs_taskfunction rcu_irq_exit_check_preemptfunction rcu_preempt_deferred_qsfunction rcu_end_inkernel_bootfunction rcu_is_watchingfunction rcu_momentary_eqsfunction rcutree_report_cpu_starting
Annotated Snippet
struct rcu_gp_oldstate {
unsigned long rgos_norm;
};
// Maximum number of rcu_gp_oldstate values corresponding to
// not-yet-completed RCU grace periods.
#define NUM_ACTIVE_RCU_POLL_FULL_OLDSTATE 2
/*
* Are the two oldstate values the same? See the Tree RCU version for
* docbook header.
*/
static inline bool same_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp1,
struct rcu_gp_oldstate *rgosp2)
{
return rgosp1->rgos_norm == rgosp2->rgos_norm;
}
unsigned long get_state_synchronize_rcu(void);
static inline void get_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)
{
rgosp->rgos_norm = get_state_synchronize_rcu();
}
unsigned long start_poll_synchronize_rcu(void);
static inline void start_poll_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)
{
rgosp->rgos_norm = start_poll_synchronize_rcu();
}
bool poll_state_synchronize_rcu(unsigned long oldstate);
static inline bool poll_state_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)
{
return poll_state_synchronize_rcu(rgosp->rgos_norm);
}
static inline void cond_synchronize_rcu(unsigned long oldstate)
{
might_sleep();
}
static inline void cond_synchronize_rcu_full(struct rcu_gp_oldstate *rgosp)
{
cond_synchronize_rcu(rgosp->rgos_norm);
}
static inline unsigned long start_poll_synchronize_rcu_expedited(void)
{
return start_poll_synchronize_rcu();
}
static inline void start_poll_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)
{
rgosp->rgos_norm = start_poll_synchronize_rcu_expedited();
}
static inline void cond_synchronize_rcu_expedited(unsigned long oldstate)
{
cond_synchronize_rcu(oldstate);
}
static inline void cond_synchronize_rcu_expedited_full(struct rcu_gp_oldstate *rgosp)
{
cond_synchronize_rcu_expedited(rgosp->rgos_norm);
}
extern void rcu_barrier(void);
static inline void synchronize_rcu_expedited(void)
{
synchronize_rcu();
}
void rcu_qs(void);
static inline void rcu_softirq_qs(void)
{
rcu_qs();
}
#define rcu_note_context_switch(preempt) \
do { \
rcu_qs(); \
rcu_tasks_qs(current, (preempt)); \
} while (0)
static inline int rcu_needs_cpu(void)
Annotation
- Immediate include surface: `asm/param.h`.
- Detected declarations: `struct rcu_gp_oldstate`, `function same_state_synchronize_rcu_full`, `function get_state_synchronize_rcu_full`, `function start_poll_synchronize_rcu_full`, `function poll_state_synchronize_rcu_full`, `function cond_synchronize_rcu`, `function cond_synchronize_rcu_full`, `function start_poll_synchronize_rcu_expedited`, `function start_poll_synchronize_rcu_expedited_full`, `function cond_synchronize_rcu_expedited`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.