include/clocksource/arm_arch_timer.h
Source file repositories/reference/linux-study-clean/include/clocksource/arm_arch_timer.h
File Facts
- System
- Linux kernel
- Corpus path
include/clocksource/arm_arch_timer.h- Extension
.h- Size
- 2700 bytes
- Lines
- 114
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitops.hlinux/timecounter.hlinux/types.h
Detected Declarations
struct arch_timer_kvm_infostruct arch_timer_mem_framestruct arch_timer_memenum arch_timer_regenum arch_timer_ppi_nrenum arch_timer_spi_nrfunction arch_timer_get_ratefunction arch_timer_read_counterfunction arch_timer_evtstrm_available
Annotated Snippet
struct arch_timer_kvm_info {
struct timecounter timecounter;
int virtual_irq;
int physical_irq;
};
struct arch_timer_mem_frame {
bool valid;
phys_addr_t cntbase;
size_t size;
int phys_irq;
int virt_irq;
};
struct arch_timer_mem {
phys_addr_t cntctlbase;
size_t size;
struct arch_timer_mem_frame frame[ARCH_TIMER_MEM_MAX_FRAMES];
};
#ifdef CONFIG_ARM_ARCH_TIMER
extern u32 arch_timer_get_rate(void);
extern u64 (*arch_timer_read_counter)(void);
extern struct arch_timer_kvm_info *arch_timer_get_kvm_info(void);
extern bool arch_timer_evtstrm_available(void);
#else
static inline u32 arch_timer_get_rate(void)
{
return 0;
}
static inline u64 arch_timer_read_counter(void)
{
return 0;
}
static inline bool arch_timer_evtstrm_available(void)
{
return false;
}
#endif
#endif
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/timecounter.h`, `linux/types.h`.
- Detected declarations: `struct arch_timer_kvm_info`, `struct arch_timer_mem_frame`, `struct arch_timer_mem`, `enum arch_timer_reg`, `enum arch_timer_ppi_nr`, `enum arch_timer_spi_nr`, `function arch_timer_get_rate`, `function arch_timer_read_counter`, `function arch_timer_evtstrm_available`.
- Atlas domain: Repository Root And Misc / include.
- 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.