STRUCT KOMEDA_FB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct komeda_fb(9) πŸ’–

okay so this is a page straight out of the Kernel API Manual β€” the struct komeda_fb one β€” and bestie, it's honestly such a cute little struct. it's giving "framebuffer but make it komeda." let's get into it πŸŽ€


✨ NAME ✨

struct komeda_fb β€” the glow-up of drm_framebuffer, extending it with a komeda attribute. literally the same energy, just with extra sparkle πŸ¦‹


🌸 SYNOPSIS 🌸

struct komeda_fb {
    struct drm_framebuffer base;
    const struct komeda_format_caps *format_caps;
    bool is_va;
    u32 aligned_w;
    u32 aligned_h;
    u32 afbc_size;
    u32 offset_payload;
 };

πŸ‘‘ Members πŸ‘‘

bestie these are the fields, and yes every single one of them matters, no cap πŸ’…

  • base β€” a drm_framebuffer. that's the whole origin story right there, the main character it's built on top of ✨
  • format_caps β€” extends drm_format_info with komeda-specific information. it's not like other format info, it's got lore 🧚
  • is_va β€” if smmu is enabled, this will be true. that's the whole condition, fr fr 🌸
  • aligned_w β€” aligned frame buffer width πŸ“
  • aligned_h β€” aligned frame buffer height πŸ“
  • afbc_size β€” the minimum size of afbc. minimum, okay, respect the boundary 🫢
  • offset_payload β€” the start of the afbc body buffer. where the body lives, iconic πŸ’€
ngl this is a header-file struct, so if you're poking at it, you're probably already deep in komeda land. hi, welcome, you're doing great πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.h β€” that's the one, go read it, it's right there ⭐

and that's the whole page, bestie!! 🫢 source for all of this lives at ./drivers/gpu/drm/arm/display/... and it's dated October 2026 β€” periodt. πŸ’–πŸŒˆ

πŸ“¦ where this page comes from