STRUCT KOMEDA_FORMAT_CAPS_TABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct komeda_format_caps_table(9) β€” the format_caps manager, bestie πŸ’…

okay so like, before we even get into it β€” this is a page from the Kernel API Manual, and the whole vibe is: this little struct is the main character that holds and manages all your format_caps info. The original spells it "format_caps mananger" and honestly? iconic typo, we're keeping the energy. 🫢


✨ SYNOPSIS ✨

here's the whole glow-up, verbatim, no cap:

struct komeda_format_caps_table {
    u32 n_formats;
    const struct komeda_format_caps *format_caps;
    bool (*format_mod_supported)(const struct komeda_format_caps *caps,
u32 layer_type, u64 modifier, u32 rot);
 };

like… look at her. three members. absolutely slaying. πŸ’–


πŸŽ€ MEMBERS πŸŽ€

  • n_formats β€” this is literally just the size of the format_caps list. that's it. she counts. she's the bouncer at the door checking how many formats get to come in. ✨
  • format_caps β€” the list itself, aka the format_caps list. the actual lineup. the roster. the girlies. πŸ¦‹
  • format_mod_supported β€” Optional (yes, capital-O optional, she can sit this one out). so here's the tea: some HW may have special requirements or limitations that cannot be described by format_caps alone 😭. this func supplies the HW with the ability to do the further HW specific check. so it's the escape hatch for when the struct just can't say everything the hardware needs. signature is exactly bool (*format_mod_supported)(const struct komeda_format_caps *caps, u32 layer_type, u64 modifier, u32 rot) β€” caps, layer_type, modifier, rot, in that order, no shuffling. πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

  • the Kernel file πŸ‘‰ ./drivers/gpu/drm/arm/display/komeda/komeda_format_caps.h
  • struct komeda_format_caps(9) β€” go read her too, she's the whole reason this table exists πŸ’œ

and that's the page!! πŸ“ go forth and check your format mods, bestie. this little drop came to you from ./drivers/gpu/drm/arm/display/..., dated October 2026, and the footer was out here calling it struct kome...t_caps_table(9) because even manpage footers get a little truncated sometimes πŸ˜­πŸ’€ slay. 🌈⭐

πŸ“¦ where this page comes from