drm_format_info_block_width(9)
π 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 aconst 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:
drm_mode_legacy_fb_format(9)drm_driver_legacy_fb_format(9)drm_driver_color_mode_format(9)drm_format_info(9)drm_get_format_info(9)drm_format_info_block_height(9)drm_format_info_bpp(9)drm_format_info_min_pitch(9)
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
- 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