STRUCT DRM_MODE_GET_PLANE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct drm_mode_get_plane(9) β€” Kernel API Manual

πŸ’– NAME

struct drm_mode_get_plane β€” Get plane metadata. That's the whole name, bestie. ✨

✨ SYNOPSIS

Okay so here's the struct, copied exactly, no edits, periodt:

struct drm_mode_get_plane {
    __u32 plane_id;
    __u32 crtc_id;
    __u32 fb_id;
    __u32 possible_crtcs;
    __u32 gamma_size;
    __u32 count_format_types;
    __u64 format_type_ptr;
 };

πŸŽ€ Members

These are the members, aka the squad. Every single one matters:

  • plane_id β€” Object ID of the plane whose information should be retrieved. Set by caller. 🫢
  • crtc_id β€” Object ID of the current CRTC. πŸ’…
  • fb_id β€” Object ID of the current fb. πŸ“
  • possible_crtcs β€” Bitmask of CRTC's compatible with the plane. CRTC's are created and they receive an index, which corresponds to their position in the bitmask. Bit N corresponds to :ref:CRTC index<crtc_index> N. 🌈
  • gamma_size β€” Never used. Like, literally never. πŸ™ˆ
  • count_format_types β€” Number of formats. πŸ”’
  • format_type_ptr β€” Pointer to __u32 array of formats that are supported by the plane. These formats do not require modifiers. πŸ‘‘

🌸 Description

Okay so userspace can perform a GETPLANE ioctl to retrieve information about a plane. That's the mission, bestie. πŸ•΅οΈβ™€οΈ

To retrieve the number of formats supported, set count_format_types to zero and call the ioctl. count_format_types will be updated with the value. No cap. πŸ’–

To retrieve these formats, allocate an array with the memory needed to store count_format_types formats. Point format_type_ptr to this array and call the ioctl again (with count_format_types still set to the value returned in the first ioctl call). Two-step reveal, very main character energy. πŸ’…

πŸ”₯ SEE ALSO

These are the linked besties β€” all of them, fr fr:


k bye bestie 🫢 source/version: ./include/uapi/drm; date: October 2026; page: struct drm_mode_get_plane(9). mwah πŸ’‹

πŸ“¦ where this page comes from