drivers/firmware/arm_scmi/transports/optee.c
Source file repositories/reference/linux-study-clean/drivers/firmware/arm_scmi/transports/optee.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/firmware/arm_scmi/transports/optee.c- Extension
.c- Size
- 17266 bytes
- Lines
- 650
- Domain
- Driver Families
- Bucket
- drivers/firmware
- 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/io.hlinux/of.hlinux/of_address.hlinux/kernel.hlinux/module.hlinux/mutex.hlinux/platform_device.hlinux/slab.hlinux/tee_drv.hlinux/uuid.huapi/linux/tee.h../common.h
Detected Declarations
struct scmi_optee_channelstruct scmi_optee_agentenum scmi_optee_pta_cmdfunction open_sessionfunction close_sessionfunction get_capabilitiesfunction get_channelfunction invoke_process_smt_channelfunction invoke_process_msg_channelfunction scmi_optee_chan_availablefunction scmi_optee_clear_channelfunction setup_dynamic_shmemfunction setup_static_shmemfunction setup_shmemfunction scmi_optee_chan_setupfunction scmi_optee_chan_freefunction scmi_optee_send_messagefunction scmi_optee_fetch_responsefunction scmi_optee_mark_txdonefunction scmi_optee_ctx_matchfunction scmi_optee_service_probefunction scmi_optee_service_removefunction scmi_transport_optee_initfunction scmi_transport_optee_exitmodule init scmi_transport_optee_init
Annotated Snippet
module_init(scmi_transport_optee_init);
static void __exit scmi_transport_optee_exit(void)
{
platform_driver_unregister(&scmi_optee_driver);
tee_client_driver_unregister(&scmi_optee_service_driver);
}
module_exit(scmi_transport_optee_exit);
MODULE_AUTHOR("Etienne Carriere <etienne.carriere@foss.st.com>");
MODULE_DESCRIPTION("SCMI OPTEE Transport driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/io.h`, `linux/of.h`, `linux/of_address.h`, `linux/kernel.h`, `linux/module.h`, `linux/mutex.h`, `linux/platform_device.h`, `linux/slab.h`.
- Detected declarations: `struct scmi_optee_channel`, `struct scmi_optee_agent`, `enum scmi_optee_pta_cmd`, `function open_session`, `function close_session`, `function get_capabilities`, `function get_channel`, `function invoke_process_smt_channel`, `function invoke_process_msg_channel`, `function scmi_optee_chan_available`.
- Atlas domain: Driver Families / drivers/firmware.
- 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.