drivers/bus/stm32_dbg_bus.c
Source file repositories/reference/linux-study-clean/drivers/bus/stm32_dbg_bus.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/bus/stm32_dbg_bus.c- Extension
.c- Size
- 6762 bytes
- Lines
- 251
- Domain
- Driver Families
- Bucket
- drivers/bus
- 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.
- 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/bus/stm32_firewall.hlinux/bus/stm32_firewall_device.hlinux/device.hlinux/err.hlinux/kernel.hlinux/module.hlinux/of.hlinux/of_platform.hlinux/platform_device.hlinux/pm_runtime.hlinux/tee_drv.hlinux/types.h
Detected Declarations
struct stm32_dbg_busenum stm32_dbg_profileenum stm32_dbg_pta_commandfunction stm32_dbg_pta_open_sessionfunction stm32_dbg_pta_close_sessionfunction stm32_dbg_bus_grant_accessfunction stm32_dbg_bus_release_accessfunction optee_ctx_matchfunction stm32_dbg_bus_removefunction stm32_dbg_bus_probefunction stm32_optee_dbg_bus_driver_exitfunction stm32_optee_dbg_bus_driver_initmodule init stm32_optee_dbg_bus_driver_init
Annotated Snippet
module_init(stm32_optee_dbg_bus_driver_init);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Gatien Chevallier <gatien.chevallier@foss.st.com>");
MODULE_DESCRIPTION("OP-TEE based STM32 debug access bus driver");
Annotation
- Immediate include surface: `linux/bus/stm32_firewall.h`, `linux/bus/stm32_firewall_device.h`, `linux/device.h`, `linux/err.h`, `linux/kernel.h`, `linux/module.h`, `linux/of.h`, `linux/of_platform.h`.
- Detected declarations: `struct stm32_dbg_bus`, `enum stm32_dbg_profile`, `enum stm32_dbg_pta_command`, `function stm32_dbg_pta_open_session`, `function stm32_dbg_pta_close_session`, `function stm32_dbg_bus_grant_access`, `function stm32_dbg_bus_release_access`, `function optee_ctx_match`, `function stm32_dbg_bus_remove`, `function stm32_dbg_bus_probe`.
- Atlas domain: Driver Families / drivers/bus.
- 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.