drivers/gpu/drm/sti/sti_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/sti/sti_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/sti/sti_drv.c- Extension
.c- Size
- 6649 bytes
- Lines
- 301
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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/component.hlinux/debugfs.hlinux/dma-mapping.hlinux/kernel.hlinux/module.hlinux/of.hlinux/of_platform.hlinux/platform_device.hdrm/clients/drm_client_setup.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_debugfs.hdrm/drm_drv.hdrm/drm_fbdev_dma.hdrm/drm_gem_dma_helper.hdrm/drm_gem_framebuffer_helper.hdrm/drm_of.hdrm/drm_print.hdrm/drm_probe_helper.hsti_drv.hsti_plane.h
Detected Declarations
function Copyrightfunction sti_drm_fps_setfunction list_for_each_entryfunction sti_drm_fps_dbg_showfunction list_for_each_entryfunction sti_drm_dbg_initfunction sti_mode_config_initfunction sti_initfunction sti_cleanupfunction sti_bindfunction sti_unbindfunction sti_platform_probefunction sti_platform_removefunction sti_platform_shutdownfunction sti_drm_initfunction sti_drm_exitmodule init sti_drm_init
Annotated Snippet
module_init(sti_drm_init);
static void sti_drm_exit(void)
{
platform_unregister_drivers(drivers, ARRAY_SIZE(drivers));
}
module_exit(sti_drm_exit);
MODULE_AUTHOR("Benjamin Gaignard <benjamin.gaignard@st.com>");
MODULE_DESCRIPTION("STMicroelectronics SoC DRM driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/component.h`, `linux/debugfs.h`, `linux/dma-mapping.h`, `linux/kernel.h`, `linux/module.h`, `linux/of.h`, `linux/of_platform.h`, `linux/platform_device.h`.
- Detected declarations: `function Copyright`, `function sti_drm_fps_set`, `function list_for_each_entry`, `function sti_drm_fps_dbg_show`, `function list_for_each_entry`, `function sti_drm_dbg_init`, `function sti_mode_config_init`, `function sti_init`, `function sti_cleanup`, `function sti_bind`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.