drm_format_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_format_info(9) πŸ’–

okay so bestie, this is drm_format_info(9) from the Kernel API Manual β€” it’s literally the glow-up guide for querying info about a pixel format ✨


🌸 NAME 🌸

drm_format_info β€” query information for a given format πŸŽ€


✨ SYNOPSIS ✨

const struct drm_format_info * drm_format_info (u32 format );

🫢 ARGUMENTS 🫢

  • format β€” the pixel format, and it’s one of the DRM_FORMAT_* besties πŸ’…

πŸ’… DESCRIPTION πŸ’…

The caller should only pass a supported pixel format to this function, okay? Like, do not just yeet a random format in there 😭

Unsupported pixel formats will generate a warning in the kernel log β€” so that’s the vibe check, and you do not wanna fail it πŸ’€

bestie fr fr: only pass a supported pixel format. unsupported ones get a warning in the kernel log 🚨

πŸ‘‘ RETURN πŸ‘‘

This hands you the instance of struct drm_format_info that describes the pixel format πŸ’–

Or it gives you NULL if the format is unsupported β€” no format info for you, bestie πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹


and that’s the whole iconic page, bestie 🫢 shoutout to the ./drivers/gpu/drm source, the Kernel API Manual vibes, and the October 2026 date at the very end β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from