STRUCT KOMEDA_FORMAT_CAPS_TABLE(9)
πΈ 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 theformat_capslist. 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 theformat_capslist. 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 byformat_capsalone π. 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 exactlybool (*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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms