drivers/hwtracing/coresight/coresight-catu.c
Source file repositories/reference/linux-study-clean/drivers/hwtracing/coresight/coresight-catu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwtracing/coresight/coresight-catu.c- Extension
.c- Size
- 19983 bytes
- Lines
- 726
- 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/acpi.hlinux/amba/bus.hlinux/device.hlinux/dma-mapping.hlinux/io.hlinux/kernel.hlinux/platform_device.hlinux/slab.hcoresight-catu.hcoresight-priv.hcoresight-tmc.h
Detected Declarations
struct catu_etr_buffunction catu_dump_tablefunction catu_dump_tablefunction catu_set_tablefunction tablefunction catu_init_sg_tablefunction catu_free_etr_buffunction catu_get_data_etr_buffunction catu_sync_etr_buffunction catu_alloc_etr_buffunction catu_wait_for_readyfunction catu_enable_hwfunction catu_enablefunction catu_disable_hwfunction catu_disablefunction __catu_probefunction catu_probefunction __catu_removefunction catu_removefunction catu_platform_probefunction catu_platform_removefunction catu_runtime_suspendfunction catu_runtime_resumefunction catu_initfunction catu_exitmodule init catu_init
Annotated Snippet
module_init(catu_init);
module_exit(catu_exit);
MODULE_AUTHOR("Suzuki K Poulose <suzuki.poulose@arm.com>");
MODULE_DESCRIPTION("Arm CoreSight Address Translation Unit (CATU) Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/amba/bus.h`, `linux/device.h`, `linux/dma-mapping.h`, `linux/io.h`, `linux/kernel.h`, `linux/platform_device.h`, `linux/slab.h`.
- Detected declarations: `struct catu_etr_buf`, `function catu_dump_table`, `function catu_dump_table`, `function catu_set_table`, `function table`, `function catu_init_sg_table`, `function catu_free_etr_buf`, `function catu_get_data_etr_buf`, `function catu_sync_etr_buf`, `function catu_alloc_etr_buf`.
- 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.