vkms_config_destroy(9)
π vkms_config_destroy(9) π
okay so real talk β this is a page from the Kernel API Manual (yes, the kernel has manuals, and yes they're lowkey iconic). grab a strawberry π and let's get into it, bestie.
β¨ NAME β¨
vkms_config_destroy β frees a VKMS configuration. that's it. that's the whole job. it's giving cleanup crew main character energy π§Ήπ
πΈ SYNOPSIS πΈ
void vkms_config_destroy (struct vkms_config *config );
returns nothing (void), takes one pointer, no cap. simple. elegant. we love to see it π«Ά
π¦ ARGUMENTS π¦
configβ thevkms_configyou want to free. hand it over and it gets yeeted into the void πβ¨ literally just the thing being destroyed.
no return value means there's nothing to check afterwards β the call is the whole story, so don't go looking for a status code that doesn't exist π
π SEE ALSO π
okay this is the part where the group chat blows up, because the whole VKMS family shows up ππ
first up, the header file and the struct itself:
- Kernel file
./drivers/gpu/drm/vkms/vkms_config.handstruct vkms_config(9)β
then the struct squad:
struct vkms_config_plane(9)struct vkms_config_crtc(9)struct vkms_config_encoder(9)struct vkms_config_connector(9)
the for-each besties (loop girlies, we stan):
vkms_config_for_each_plane(9)vkms_config_for_each_crtc(9)vkms_config_for_each_encoder(9)vkms_config_for_each_connector(9)vkms_config_plane_for_each_possible_crtc(9)vkms_config_encoder_for_each_possible_crtc(9)vkms_config_connector_for_each_possible_encoder(9)
the create/destroy/inspect crowd:
vkms_config_create(9)vkms_config_default_create(9)vkms_config_get_device_name(9)vkms_config_get_num_crtcs(9)vkms_config_is_valid(9)vkms_config_register_debugfs(9)
planes, planes, planes π©οΈ:
vkms_config_create_plane(9)vkms_config_destroy_plane(9)vkms_config_plane_set_type(9)vkms_config_plane_get_default_pipeline(9)vkms_config_plane_set_default_pipeline(9)vkms_config_plane_attach_crtc(9)vkms_config_plane_detach_crtc(9)
crtc behaviour π:
vkms_config_create_crtc(9)vkms_config_destroy_crtc(9)vkms_config_crtc_get_writeback(9)vkms_config_crtc_set_writeback(9)vkms_config_crtc_primary_plane(9)vkms_config_crtc_cursor_plane(9)
encoders π₯:
vkms_config_create_encoder(9)vkms_config_destroy_encoder(9)vkms_config_encoder_attach_crtc(9)vkms_config_encoder_detach_crtc(9)
connectors, the final boss π:
vkms_config_create_connector(9)vkms_config_destroy_connector(9)vkms_config_connector_attach_encoder(9)vkms_config_connector_detach_encoder(9)vkms_config_connector_get_status(9)vkms_config_connector_set_status(9)
that's literally all of them, fr fr β nothing skipped, nothing merged, iykyk π
and that's the page, bestie!! π this little gem lives down in ./drivers/gpu/drm/vkms, straight from the October 2026 drop β so go forth and free your configs responsibly. mwah πβ¨πΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms