drm_format_info_min_pitch(9)
β¨ NAME β¨
Okay so bestie, welcome to drm_format_info_min_pitch β manual page 9, Kernel API Manual, and it literally computes the minimum required pitch in bytes π₯ (yes, that's the whole vibe, she's a one-job icon and she does it well π
)
πΈ SYNOPSIS πΈ
uint64_t drm_format_info_min_pitch (const struct drm_format_info *info ,
int plane , unsigned int buffer_width );
No cap, that's the whole signature π«Ά β takes a format info pointer, a plane index, and a buffer width, and hands you back a uint64_t. Periodt.
π ARGUMENTS π
infoβ the pixel format info π like, the whole personality of the pixel format lives in hereplaneβ the plane index π (which plane we're looking at, bestie, keep up)buffer_widthβ the buffer width, and it's measured in pixels β don't get it twisted
π RETURN π
So what does she give you back? The minimum required pitch in bytes for a buffer π β and she gets there by taking into consideration both the pixel format information and the buffer width. Both. She's thorough like that. We love a considerate function π
π¦ SEE ALSO π¦
Kernel file ./drivers/gpu/drm/drm_fourcc.c and honestly the whole 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_width(9)drm_format_info_block_height(9)drm_format_info_bpp(9)
Go read them, they're all iconic in their own way β¨
That's the whole page, bestie β sending you off with love from ./drivers/gpu/drm π, dated October 2026, and that's the drama of drm_format_info_min_pitch(9) ππ§ββοΈβ
π¦ 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