intel_fb_get_format_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– intel_fb_get_format_info πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for intel_fb_get_format_info β€” yes that's the whole title, yes it's a mouthful, we love her anyway 🫢. She lives in the i915 display world and she's here to hand you the format info for a pixel format, but specifically the version of it that your modifier wants. lowkey iconic.


✨ NAME ✨

intel_fb_get_format_info β€” get a modifier-specific format information. that's the whole job. she gets. she gives. periodt πŸ’…


🌸 SYNOPSIS 🌸

const struct drm_format_info * intel_fb_get_format_info (u32
pixel_format , u64 modifier );

so she takes a u32 and a u64 and hands you back a const struct drm_format_info *. no cap, that's the whole signature πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pixel_format β€” the pixel format. that's it. that's the argument. (the manpage is a woman of few words and honestly? respect πŸ’œ)
  • modifier β€” the modifier. again: minimal, mysterious, main character energy ✨

⭐ RETURN ⭐

She returns the format information for pixel_format that's specific to modifier πŸ’– β€” but heads up: if the modifier doesn't override the format, you get NULL. not an error, not a vibe check fail, just NULL. so like, check for it, bestie 🫢


πŸ”₯ SEE ALSO πŸ”₯

the kernel file she's chillin' in, fr fr:

  • Kernel file ./drivers/gpu/drm/i915/display/intel_fb.c

and her whole friend group β€” every single one of them, no skipping, iykyk πŸ‘‘:


ngl the arguments section is doing the absolute bare minimum and i respect the restraint, but do not let that fool you β€” the return value genuinely can be NULL, so handle it 🌈

that's the whole page, bestie β€” sourced from ./drivers/gpu/drm/i915/display, dated October 2026, and she ate πŸ’…πŸ“ mwah, go read your modifiers βœ¨πŸ§šπŸ’–

πŸ“¦ where this page comes from