drm_format_info_bpp(9)
π drm_format_info_bpp (9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in DRM land, you've got a pixel format info struct in your hands, and you just NEED to know how many bits one single pixel is eating. that's literally this function. it's the bits-per-pixel girlie. no cap. β¨
πΈ NAME πΈ
drm_format_info_bpp β number of bits per pixel π
β¨ SYNOPSIS β¨
unsigned int drm_format_info_bpp (const struct drm_format_info *info ,
int plane );
like, she takes two things and gives you back an unsigned int. simple. iconic. periodt. π«Ά
π¦ ARGUMENTS π¦
infoβ the pixel format info π (yes theconst struct drm_format_info *one, you already know)planeβ the plane index π (which plane we're talking about, bestie)
π RETURN π
the actual number of bits per pixel β and lowkey the important part: it depends on the plane index π so don't come for her assuming it's one fixed number, because it's giving "it depends" energy and that's valid.
π SEE ALSO π
the kernel file ./drivers/gpu/drm/drm_fourcc.c is where the magic lives, and then 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_min_pitch(9)
go read them, iykyk π
ngl there are no options, no env vars, no exit statuses on this one β she's a tiny little helper and she knows it. π§
and that's the whole page, bestie!! this cutie lives in ./drivers/gpu/drm, she's dated October 2026, and she goes by drm_format_info_bpp(9). mwah ππ see you in the next manpage!! π¦β¨
π¦ 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