drm_format_info_block_width(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_format_info_block_width(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” today's main character is drm_format_info_block_width(9), and honestly? she's doing exactly one thing and she's doing it slayfully. πŸ¦‹


✨ NAME ✨

drm_format_info_block_width β€” literally just the width in pixels of a block. that's it. that's the vibe. πŸ’…


🌸 SYNOPSIS 🌸

unsigned int drm_format_info_block_width (const struct drm_format_info
*info , int plane );

no cap, that's the whole signature. two args, one unsigned int coming back atcha. πŸŽ€


🫢 ARGUMENTS 🫢

  • info β€” the pixel format info, aka the little struct that knows things. she's a const struct drm_format_info * and she's iconic for it. πŸ‘‘
  • plane β€” the plane index. which plane are we talking about? this int. that's her whole job. 🧚

⭐ RETURN ⭐

the width in pixels of a block β€” and lowkey the important part: it depends on the plane index. so like, don't assume it's the same for every plane, bestie. different plane, different answer. periodt. πŸ’€


🌈 SEE ALSO 🌈

go look at the kernel file ./drivers/gpu/drm/drm_fourcc.c β€” that's where the magic lives, fr fr. and while you're in the neighborhood, these besties are all in the same friend group:

like… the whole drm_format_info_* crew? obsessed. πŸ“


ngl, if you only remember one thing: width. in pixels. of a block. depending on the plane index. that's the tea β˜• and it's piping hot πŸ’…

and that's a wrap, bestie!! this page came from ./drivers/gpu/drm and it's dated October 2026, so like… future energy fr. mwah πŸ’‹βœ¨πŸ¦‹πŸŒΈπŸ’œ

πŸ“¦ where this page comes from