drm_format_info(9)
π 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 theDRM_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 π¦
- Kernel file
./drivers/gpu/drm/drm_fourcc.c drm_mode_legacy_fb_format(9)drm_driver_legacy_fb_format(9)drm_driver_color_mode_format(9)drm_get_format_info(9)drm_format_info_block_width(9)drm_format_info_block_height(9)drm_format_info_bpp(9)drm_format_info_min_pitch(9)
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
- 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