drivers/hwtracing/coresight/coresight-cti-core.c
Source file repositories/reference/linux-study-clean/drivers/hwtracing/coresight/coresight-cti-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwtracing/coresight/coresight-cti-core.c- Extension
.c- Size
- 20686 bytes
- Lines
- 801
- Domain
- Driver Families
- Bucket
- drivers/hwtracing
- 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.
- 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/amba/bus.hlinux/atomic.hlinux/bits.hlinux/coresight.hlinux/cpu_pm.hlinux/cpuhotplug.hlinux/device.hlinux/io.hlinux/kernel.hlinux/list.hlinux/mutex.hlinux/pm_runtime.hlinux/property.hlinux/spinlock.hcoresight-priv.hcoresight-cti.h
Detected Declarations
function cti_write_all_hw_regsfunction cti_enable_hwfunction cti_disable_hwfunction cti_read_single_regfunction cti_write_single_regfunction cti_write_intackfunction cti_set_default_configfunction cti_add_connection_entryfunction cti_add_default_connectionfunction cti_channel_trig_opfunction cti_channel_gate_opfunction cti_channel_setopfunction cti_add_sysfs_linkfunction cti_remove_sysfs_linkfunction cti_match_fixup_csdevfunction list_for_each_entryfunction cti_add_assoc_to_csdevfunction cti_remove_assoc_from_csdevfunction cti_update_conn_xrefsfunction list_for_each_entryfunction cti_remove_conn_xrefsfunction list_for_each_entryfunction cti_enablefunction cti_disablefunction cti_removefunction cti_probefunction cti_initfunction cti_exitmodule init cti_init
Annotated Snippet
module_init(cti_init);
module_exit(cti_exit);
MODULE_AUTHOR("Mike Leach <mike.leach@linaro.org>");
MODULE_DESCRIPTION("Arm CoreSight CTI Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/amba/bus.h`, `linux/atomic.h`, `linux/bits.h`, `linux/coresight.h`, `linux/cpu_pm.h`, `linux/cpuhotplug.h`, `linux/device.h`, `linux/io.h`.
- Detected declarations: `function cti_write_all_hw_regs`, `function cti_enable_hw`, `function cti_disable_hw`, `function cti_read_single_reg`, `function cti_write_single_reg`, `function cti_write_intack`, `function cti_set_default_config`, `function cti_add_connection_entry`, `function cti_add_default_connection`, `function cti_channel_trig_op`.
- Atlas domain: Driver Families / drivers/hwtracing.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.