drm_get_format_info(9)
π
drm_get_format_info(9) π
Okay so bestie, welcome to this page from the Kernel API Manual β it's giving βI just need the format info for a framebuffer configuration,β and honestly? Same. π«Ά
β¨ NAME β¨
drm_get_format_info β query information for a given framebuffer configuration. That's the whole vibe, no cap. πΈ
π SYNOPSIS π
const struct drm_format_info * drm_get_format_info (struct drm_device
*dev , u32 pixel_format , u64 modifier );
π¦ ARGUMENTS π¦
devβ the DRM device. Your main-character device energy. πpixel_formatβ the pixel format (DRM_FORMAT_*). Literally the format of the pixels, bestie. β¨modifierβ modifier. That's it. That's the note. π
π₯ RETURN π₯
The instance of struct drm_format_info that describes the pixel format, or NULL if the format is unsupported. So likeβ¦ if it's unsupported, you get NULL, and that's the whole answer. π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/drm_fourcc.c is right there π, and the squad is:
drm_mode_legacy_fb_format(9)drm_driver_legacy_fb_format(9)drm_driver_color_mode_format(9)drm_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)
π cute sign-off π β source/version: ./drivers/gpu/drm; date: October 2026; manual: Kernel API Manual; title: drm_get_format_info(9). Bye bestie, ily π
π¦ 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