drm_crtc_sup...legacy_gamma(9)
π drm_crtc_sup...legacy_gamma(9) β the kernel API manual, bestie edition π
okay so picture this: it's a Linux kernel API manual page, the manual name is literally drm_crtc_sup...legacy_gamma(9), and it's here to answer exactly one (1) question. that's it. that's the whole vibe. let's get into it π
β¨ NAME β¨
drm_crtc_supports_legacy_gamma β does the crtc support legacy gamma correction table
likeβ¦ that's the entire personality. it checks a thing and tells you yes or no. icon behavior honestly π
πΈ SYNOPSIS πΈ
bool drm_crtc_supports_legacy_gamma(struct drm_crtc *crtc);
look at her. two words, one argument, no drama. bool in the front because she's a yes/no girlie, and a single pointer because she doesn't need a whole crowd π¦
π«Ά ARGUMENTS π«Ά
crtcβ the CRTC object. that's it, that's the whole guest list. one CRTC, walking in solo, main character energy β¨
π DESCRIPTION π
so what does she actually do? she returns true/false depending on whether the given crtc supports setting the legacy gamma correction table. that's it!! that's the function!! no cap, no side quests, no weird surprises β just a clean little boolean handing you the tea β
ngl it's giving "vibe check for gamma" and honestly? we love a focused queen. she knows her job and she does it π
π SEE ALSO π
okay the friend group is LARGE. she rolls deep. here's literally everyone she wants you to meet, no skips, no cuts, iykyk:
- Kernel file
./drivers/gpu/drm/drm_color_mgmt.coverview(9)β the starting point, the lore drop drm_color_ctm_s31_32_to_qm_n(9)drm_crtc_enable_color_mgmt(9)drm_mode_crtc_set_gamma_size(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)
that's twenty-one whole references. twenty-one!! she said "you WILL understand color management" and honestly? slay π§
and that's the page, bestie π this little gem lives under ./drivers/gpu/drm, and the version info stamps it as October 2026 β so go forth, call drm_crtc_supports_legacy_gamma, get your bool, and remember: gamma table support is a spectrum and this function will tell you exactly where your crtc stands πΈβ¨π
π¦ 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