drm_crtc_load_gamma_888(9)
π drm_crtc_load_gamma_888 β kernel API manual, but make it cute π
ok so this is the drm_crtc_load_gamma_888(9) page from the Kernel API Manual and bestie, it's literally about pushing a gamma ramp into hardware. short page, but every word slays. let's go π
β¨ NAME β¨
drm_crtc_load_gamma_888 β programs the gamma ramp for RGB888-like formats. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
void drm_crtc_load_gamma_888 (struct drm_crtc *crtc , const struct
drm_color_lut *lut , drm_crtc_set_lut_func set_gamma );
like, three args, one void, no drama. iconic behavior honestly π«Ά
π¦ ARGUMENTS π¦
crtcβ the displaying CRTC. the main character screen-energy one πlutβ the gamma ramp you're about to program. the actual color vibes πset_gammaβ callback for programming the hardware gamma LUT. the lil function that does the actual touching of hardware, iykyk π₯
π DESCRIPTION π
so what does it do? it programs the gamma ramp you passed in lut straight into hardware. simple, clean, no cap β¨
the one rule tho: the input gamma ramp must have 256 entries per color component. not 255, not "eh close enough" β 256. every single color component. fr fr, don't play with it π
π§ SEE ALSO π§
the whole friend group, all here, all linked, all (9):
- 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_565_from_888(9)drm_crtc_load_gamma_555_from_888(9)drm_crtc_fill_gamma_888(9)drm_crtc_fill_gamma_565(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)
like, go read drm_color_lut_check(9) before you @ me about your lut, just saying π
π reminder bestie: drm_crtc_load_gamma_888(9) does not have its own NOTES, RETURN VALUE, ERRORS or COPYRIGHT section on this page. what you see is what you get. don't invent lore β¨
ok bye ily, this page lives in ./drivers/gpu/drm, it's dated October 2026, and it comes to you from the Kernel API Manual β mwah, go program some gamma ramps responsibly πππ
π¦ 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