vkms_config_...ster_debugfs(9)
okay so real talk: this page is from the vkms_config_...ster_debugfs(9) manual, and it's a short one β but it still ate. Let's get into it π
β¨ NAME β¨
vkms_config_register_debugfs β registers a debugfs file so you can see the device's configuration. That's it. That's the whole job. And it slays at it π
πΈ SYNOPSIS πΈ
okay bestie, look at this signature, it's literally so simple:
void vkms_config_register_debugfs (struct vkms_device *vkms_device );
returns void (so, nothing back, no receipts) and takes exactly one pointer. lowkey iconic β¨
π¦ ARGUMENTS π¦
vkms_deviceβ the Device to register. that's the one you're handing over, bestie π«Ά
π SEE ALSO π
the whole friend group is here, fr fr. the kernel file is ./drivers/gpu/drm/vkms/vkms_config.h β go look at it, it's giving main character energy π
the structs:
struct vkms_config(9)struct vkms_config_plane(9)struct vkms_config_crtc(9)struct vkms_config_encoder(9)struct vkms_config_connector(9)
the for-each girlies (iteration macros, we love them):
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 config lifecycle era:
vkms_config_create(9)vkms_config_default_create(9)vkms_config_destroy(9)vkms_config_get_device_name(9)vkms_config_get_num_crtcs(9)vkms_config_is_valid(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)
crts, and their whole situation:
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, plus their status glow-up:
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)
and that's the whole page, no cap. so short and yet so useful. mwah π
cute sign-off time: this lil beauty lives in ./drivers/gpu/drm/vkms, and it's dated October 2026 β so yes, she's from the future, and she's still registering debugfs files. periodt. π§ββοΈπΈπ
π¦ 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