drivers/gpu/drm/logicvc/logicvc_interface.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/logicvc/logicvc_interface.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/logicvc/logicvc_interface.c- Extension
.c- Size
- 6018 bytes
- Lines
- 214
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- 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/types.hdrm/drm_atomic_helper.hdrm/drm_bridge.hdrm/drm_connector.hdrm/drm_drv.hdrm/drm_encoder.hdrm/drm_gem_dma_helper.hdrm/drm_modeset_helper_vtables.hdrm/drm_of.hdrm/drm_panel.hdrm/drm_print.hdrm/drm_probe_helper.hlogicvc_crtc.hlogicvc_drm.hlogicvc_interface.hlogicvc_regs.h
Detected Declarations
function Copyrightfunction logicvc_encoder_disablefunction logicvc_connector_get_modesfunction logicvc_interface_encoder_typefunction logicvc_interface_connector_typefunction logicvc_interface_native_connectorfunction logicvc_interface_attach_crtcfunction logicvc_interface_init
Annotated Snippet
if (ret) {
drm_err(drm_dev, "Failed to initialize connector\n");
goto error_encoder;
}
drm_connector_helper_add(&interface->drm_connector,
&logicvc_connector_helper_funcs);
ret = drm_connector_attach_encoder(&interface->drm_connector,
&interface->drm_encoder);
if (ret) {
drm_err(drm_dev,
"Failed to attach connector to encoder\n");
goto error_encoder;
}
}
if (interface->drm_bridge) {
ret = drm_bridge_attach(&interface->drm_encoder,
interface->drm_bridge, NULL, 0);
if (ret) {
drm_err(drm_dev,
"Failed to attach bridge to encoder\n");
goto error_encoder;
}
}
logicvc->interface = interface;
return 0;
error_encoder:
drm_encoder_cleanup(&interface->drm_encoder);
error_early:
return ret;
}
Annotation
- Immediate include surface: `linux/types.h`, `drm/drm_atomic_helper.h`, `drm/drm_bridge.h`, `drm/drm_connector.h`, `drm/drm_drv.h`, `drm/drm_encoder.h`, `drm/drm_gem_dma_helper.h`, `drm/drm_modeset_helper_vtables.h`.
- Detected declarations: `function Copyright`, `function logicvc_encoder_disable`, `function logicvc_connector_get_modes`, `function logicvc_interface_encoder_type`, `function logicvc_interface_connector_type`, `function logicvc_interface_native_connector`, `function logicvc_interface_attach_crtc`, `function logicvc_interface_init`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source 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.