drivers/base/power/trace.c
Source file repositories/reference/linux-study-clean/drivers/base/power/trace.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/base/power/trace.c- Extension
.c- Size
- 7945 bytes
- Lines
- 306
- Domain
- Driver Families
- Bucket
- drivers/base
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/pm-trace.hlinux/export.hlinux/rtc.hlinux/suspend.hlinux/init.hlinux/mc146818rtc.hpower.h
Detected Declarations
function set_magic_timefunction read_magic_timefunction hash_stringfunction set_trace_devicefunction generate_pm_tracefunction show_file_hashfunction show_dev_hashfunction show_trace_dev_matchfunction pm_trace_notifyfunction early_resume_initfunction late_resume_initmodule init early_resume_initexport pm_trace_rtc_abusedexport set_trace_deviceexport generate_pm_trace
Annotated Snippet
core_initcall(early_resume_init);
late_initcall(late_resume_init);
Annotation
- Immediate include surface: `linux/pm-trace.h`, `linux/export.h`, `linux/rtc.h`, `linux/suspend.h`, `linux/init.h`, `linux/mc146818rtc.h`, `power.h`.
- Detected declarations: `function set_magic_time`, `function read_magic_time`, `function hash_string`, `function set_trace_device`, `function generate_pm_trace`, `function show_file_hash`, `function show_dev_hash`, `function show_trace_dev_match`, `function pm_trace_notify`, `function early_resume_init`.
- Atlas domain: Driver Families / drivers/base.
- Implementation status: integration 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.