STRUCT VKMS_CONFIGFS_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct vkms_configfs_device(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9 β€” this is the tea on struct vkms_configfs_device, and it's literally the configfs glow-up of a VKMS device. no cap. 🫢


✨ NAME ✨

struct vkms_configfs_device β€” the configfs representation of a VKMS device. it's giving "my whole personality is this struct" and honestly? iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

struct vkms_configfs_device {
    struct config_group group;
    struct config_group planes_group;
    struct config_group crtcs_group;
    struct config_group encoders_group;
    struct config_group connectors_group;
    struct mutex lock;
    struct vkms_config *config;
    bool enabled;
};

πŸ¦‹ Members πŸ¦‹

every single one is here, bestie, we do NOT skip members in this house πŸ’–
  • group β€” the top level configuration group that represents a VKMS device. it gets initialized when a new directory is created under /config/vkms/. main character energy fr fr ✨
  • planes_group β€” default subgroup of group at /config/vkms/planes. slay. πŸ›©οΈ
  • crtcs_group β€” default subgroup of group at /config/vkms/crtcs. we love a well-organized subgroup. πŸ’…
  • encoders_group β€” default subgroup of group at /config/vkms/encoders. yes bestie, that path exactly, don't @ me. πŸŽ€
  • connectors_group β€” default subgroup of group at /config/vkms/connectors. plug it in, plug it in. πŸ”Œ
  • lock β€” the lock used to project concurrent access to the configuration attributes. (yes, "project" β€” that's the word in the original, and it's lowkey serving bodyguard duty for your config. πŸ›‘οΈ)
  • config β€” protected by lock. this is the configuration of the VKMS device. πŸ”’
  • enabled β€” protected by lock. the device is created or destroyed when this option changes. so like... flip it, and the whole device is born or yeeted πŸ’€ that's a lot of power for one bool, ngl.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/vkms/vkms_configfs.c β€” go read it, it's the source of truth bestie πŸ“–

the whole friend group:

  • struct vkms_configfs_plane(9) πŸ›©οΈ
  • struct vkms_configfs_crtc(9) πŸ–₯️
  • struct vkms_configfs_encoder(9) 🎞️
  • struct vkms_configfs_connector(9) πŸ”—

and that's the whole vibe check, bestie β€” no cap, every member accounted for, periodt. πŸ’œ

this has been struct vkms_configfs_device(9) from the Kernel API Manual, brought to you by the lovely humans at ./drivers/gpu/drm/vkms, dated October 2026. mwah, go forth and configure your VKMS device responsibly βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from