vkms_config_create_encoder(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vkms_config_create_encoder(9)

okay bestie, welcome to the Kernel API Manual β€” this one's from the kernel docs, and it's literally called vkms_config_create_encoder(9). grab a strawberry drink πŸ“ and let's get into it, because this function is the moment you manifest a brand new encoder configuration into existence ✨


πŸŽ€ NAME πŸŽ€

vkms_config_create_encoder β€” adds a new encoder configuration, no cap 🫢


🌸 SYNOPSIS 🌸

struct vkms_config_encoder * vkms_config_create_encoder (struct
vkms_config *config );

that's the whole vibe check: it hands you back a struct vkms_config_encoder *, and it takes exactly one thing. iconic, honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • config β€” the configuration you're adding the encoder to πŸ’– that's it, that's the whole arg, she's low-key simple like that.

⭐ RETURN ⭐

you get the new encoder configuration back, or an error if things went sideways 😭 β€” and listen, this part matters fr fr: call vkms_config_destroy_encoder to free the returned encoder configuration. don't just leave her hanging, that's not the energy we're bringing 🧚


πŸ”₯ SEE ALSO πŸ”₯

everything lives in the kernel file ./drivers/gpu/drm/vkms/vkms_config.h β€” here's the full squad, all of them, no skips πŸ‘‘

struct vkms_config(9), struct vkms_config_plane(9), struct vkms_config_crtc(9), struct vkms_config_encoder(9), struct vkms_config_connector(9), 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), 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), vkms_config_register_debugfs(9), 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), 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), vkms_config_destroy_encoder(9), vkms_config_encoder_attach_crtc(9), vkms_config_encoder_detach_crtc(9), 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)

like… the whole config family reunion, and you're invited 🌈


πŸ’œ that's the page, bestie β€” go create that encoder and remember to vkms_config_destroy_encoder it after πŸ’œ

mwah πŸ’‹ β€” this cutie came from ./drivers/gpu/drm/vkms, dated October 2026, and the manual name is vkms_config_create_encoder(9) in case you forgot already πŸ™ˆ

πŸ“¦ where this page comes from