drm_get_format_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


πŸŽ€ 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