drivers/clocksource/em_sti.c
Source file repositories/reference/linux-study-clean/drivers/clocksource/em_sti.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/clocksource/em_sti.c- Extension
.c- Size
- 8466 bytes
- Lines
- 366
- Domain
- Driver Families
- Bucket
- drivers/clocksource
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/init.hlinux/platform_device.hlinux/spinlock.hlinux/interrupt.hlinux/ioport.hlinux/io.hlinux/clk.hlinux/irq.hlinux/err.hlinux/delay.hlinux/clocksource.hlinux/clockchips.hlinux/slab.hlinux/module.h
Detected Declarations
struct em_sti_privfunction em_sti_readfunction em_sti_writefunction em_sti_enablefunction em_sti_disablefunction em_sti_countfunction em_sti_set_nextfunction em_sti_interruptfunction em_sti_startfunction em_sti_stopfunction em_sti_clocksource_readfunction em_sti_clocksource_enablefunction em_sti_clocksource_disablefunction em_sti_clocksource_resumefunction em_sti_register_clocksourcefunction em_sti_clock_event_shutdownfunction em_sti_clock_event_set_oneshotfunction em_sti_clock_event_nextfunction em_sti_register_clockeventfunction em_sti_probefunction em_sti_initfunction em_sti_exitmodule init em_sti_init
Annotated Snippet
subsys_initcall(em_sti_init);
module_exit(em_sti_exit);
MODULE_AUTHOR("Magnus Damm");
MODULE_DESCRIPTION("Renesas Emma Mobile STI Timer Driver");
Annotation
- Immediate include surface: `linux/init.h`, `linux/platform_device.h`, `linux/spinlock.h`, `linux/interrupt.h`, `linux/ioport.h`, `linux/io.h`, `linux/clk.h`, `linux/irq.h`.
- Detected declarations: `struct em_sti_priv`, `function em_sti_read`, `function em_sti_write`, `function em_sti_enable`, `function em_sti_disable`, `function em_sti_count`, `function em_sti_set_next`, `function em_sti_interrupt`, `function em_sti_start`, `function em_sti_stop`.
- Atlas domain: Driver Families / drivers/clocksource.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.