drivers/gpu/drm/vkms/vkms_colorop.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/vkms/vkms_colorop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/vkms/vkms_colorop.c- Extension
.c- Size
- 2805 bytes
- Lines
- 130
- 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.
- 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/slab.hdrm/drm_colorop.hdrm/drm_print.hdrm/drm_property.hdrm/drm_plane.hvkms_drv.h
Detected Declarations
function vkms_initialize_color_pipelinefunction vkms_initialize_colorops
Annotated Snippet
if (ops[j]) {
drm_colorop_cleanup(ops[j]);
kfree(ops[j]);
}
}
return ret;
}
int vkms_initialize_colorops(struct drm_plane *plane)
{
struct drm_prop_enum_list pipeline = {};
int ret = 0;
/* Add color pipeline */
ret = vkms_initialize_color_pipeline(plane, &pipeline);
if (ret)
goto out;
/* Create COLOR_PIPELINE property and attach */
ret = drm_plane_create_color_pipeline_property(plane, &pipeline, 1);
kfree(pipeline.name);
out:
return ret;
}
Annotation
- Immediate include surface: `linux/slab.h`, `drm/drm_colorop.h`, `drm/drm_print.h`, `drm/drm_property.h`, `drm/drm_plane.h`, `vkms_drv.h`.
- Detected declarations: `function vkms_initialize_color_pipeline`, `function vkms_initialize_colorops`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source 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.