drm_mode_crt...t_gamma_size(9)
β¨ drm_mode_crtc_set_gamma_size β set the gamma table size β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function with a big job: telling the kernel how big your gamma table is. it's giving "small but mighty" energy, ngl.
πΈ NAME πΈ
drm_mode_crtc_set_gamma_size β set the gamma table size π
π SYNOPSIS π
int drm_mode_crtc_set_gamma_size (struct drm_crtc *crtc , int gamma_size
);
π¦ ARGUMENTS π¦
crtcβ the CRTC you're setting the gamma table size for, like, the main character of this whole operation πgamma_sizeβ the size of the gamma table, literally just the number π
π DESCRIPTION π
so here's the vibe: drivers that support gamma tables should set this to the supported gamma table size when they're initializing the CRTC. that's it, that's the whole thing. do it at init time, bestie β¨
and here's the important little caveat β currently the drm core only supports a fixed gamma table size. so don't come in here expecting to flex a custom size, because the core said "no β€οΈ" to that. iykyk π
β RETURN β
- Zero on success π
- negative errno on failure π
π₯ SEE ALSO π₯
okay this list is long and honestly iconic, so buckle up π«Ά
- 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_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_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)
fr fr, gamma table size is one of those tiny details that will absolutely vibe check your whole display pipeline, so set it properly π
and that's the whole page, no cap π
shoutout to ./drivers/gpu/drm for hosting this masterpiece, dated October 2026 β the drm_mode_crt...t_gamma_size(9) energy is immaculate, periodt π§
π¦ 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