drm_crtc_fill_gamma_565(9)
π drm_crtc_fill_gamma_565(9) β Kernel API Manual π
okay so bestie, welcome to the drm_crtc_fill_gamma_565 page, aka the little kernel function that hands your display a default gamma ramp for RGB565-ish formats β¨ no cap, it's a whole vibe.
πΈ SYNOPSIS πΈ
void drm_crtc_fill_gamma_565 (struct drm_crtc *crtc ,
drm_crtc_set_lut_func set_gamma );
literally that's the whole signature, she's compact and she knows it π
β¨ ARGUMENTS β¨
crtcβ the CRTC that's doing the displaying, aka the main character actually putting pixels on your screen πset_gammaβ the callback that programs the hardware gamma LUT, the little worker bee that makes it real π
π DESCRIPTION π
Programs a default gamma ramp to hardware. that's it, that's the whole job β she fills in the gamma, she sends it to the hardware, she slays π
fr fr, this is the "just give me something sane as a starting point" function. it's giving low-effort-but-iconic.
π¦ SEE ALSO π¦
like, go read these too, they're all part of the same friend group:
- Kernel file
./drivers/gpu/drm/drm_color_mgmt.coverview(9) drm_color_ctm_s31_32_to_qm_n(9)drm_crtc_enable_color_mgmt(9)drm_mode_crtc_set_gamma_size(9)drm_crtc_supports_legacy_gamma(9)drm_crtc_legacy_gamma_set(9)drm_mode_gamma_set_ioctl(9)drm_mode_gamma_get_ioctl(9)drm_get_color_encoding_name(9)drm_get_color_range_name(9)drm_plane_create_color_properties(9)drm_color_lut_check(9)drm_crtc_load_gamma_888(9)drm_crtc_load_gamma_565_from_888(9)drm_crtc_load_gamma_555_from_888(9)drm_crtc_fill_gamma_888(9)drm_crtc_fill_gamma_555(9)drm_crtc_load_palette_8(9)drm_crtc_fill_palette_332(9)drm_crtc_fill_palette_8(9)drm_color_lut32_check(9)
aaaand that's the page bestie π«Ά this lil drop comes to you from ./drivers/gpu/drm, dated October 2026 β screenshot it, frame it, put it on your fridge, it's iconic β¨π
π¦ 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