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.

Dependency Surface

Detected Declarations

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

Implementation Notes