drm_format_i...block_height(9)
π drm_format_i...block_height(9) π
okay so this is a page from the Kernel API Manual and bestie, it's a tiny one but it matters. we're talking about one (1) function that tells you how tall a block is. that's it. that's the whole vibe. and honestly? iconic for that.
β¨ NAME β¨
drm_format_info_block_height β height in pixels of a block π
like literally the height. in pixels. of a block. no cap.
β¨ SYNOPSIS β¨
unsigned int drm_format_info_block_height (const struct drm_format_info
*info , int plane );
so you call it, you hand it two things, and it gives you back an unsigned int. that's the shape of it. slay.
β¨ ARGUMENTS β¨
infoβ the pixel format info π«Ά this is yourconst struct drm_format_info *bestie, just your regular pixel format info, nothing spookyplaneβ plane index π« which plane you're asking about, as anint. yes, an index. yes, it's a number. we been knew.
β¨ RETURN β¨
it returns the height in pixels of a block, and the value depends on the plane index π₯ so like, different plane, potentially different answer. that's the whole deal.
β¨ SEE ALSO β¨
go off, related functions π also there's a kernel file in here so don't come for me:
- Kernel file
./drivers/gpu/drm/drm_fourcc.c 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_width(9)drm_format_info_bpp(9)drm_format_info_min_pitch(9)
notice how there's a block_width in there and this page is block_height? yeah. they're a matching set. a duo. main character energy from both of them honestly π
lowkey a wholesome reminder that some of the most useful functions in the kernel are also the shortest manpages. not everything needs to be a whole essay. sometimes you just want to know how tall the block is. π
that's the whole page bestie, no filler, no fluff, just block height facts π
this one lives under ./drivers/gpu/drm πΈ and the version/date stamp on it is October 2026 β marking your calendars accordingly, iykyk βπ
π¦ 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