arch/powerpc/sysdev/mpic_timer.c
Source file repositories/reference/linux-study-clean/arch/powerpc/sysdev/mpic_timer.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/sysdev/mpic_timer.c- Extension
.c- Size
- 12761 bytes
- Lines
- 561
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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/kernel.hlinux/init.hlinux/module.hlinux/errno.hlinux/mm.hlinux/interrupt.hlinux/slab.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/syscore_ops.hsysdev/fsl_soc.hasm/io.hasm/mpic_timer.h
Detected Declarations
struct timer_regsstruct cascade_privstruct timer_group_privfunction convert_ticks_to_timefunction convert_time_to_ticksfunction set_cascade_timerfunction list_for_each_entryfunction mpic_start_timerfunction mpic_stop_timerfunction mpic_get_remain_timefunction mpic_free_timerfunction timer_group_get_freqfunction timer_group_get_irqfunction timer_group_initfunction mpic_timer_resumefunction list_for_each_entryfunction mpic_timer_initmodule init mpic_timer_initexport mpic_start_timerexport mpic_stop_timerexport mpic_get_remain_timeexport mpic_free_timerexport mpic_request_timer
Annotated Snippet
subsys_initcall(mpic_timer_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/errno.h`, `linux/mm.h`, `linux/interrupt.h`, `linux/slab.h`, `linux/of.h`.
- Detected declarations: `struct timer_regs`, `struct cascade_priv`, `struct timer_group_priv`, `function convert_ticks_to_time`, `function convert_time_to_ticks`, `function set_cascade_timer`, `function list_for_each_entry`, `function mpic_start_timer`, `function mpic_stop_timer`, `function mpic_get_remain_time`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.