drm_get_color_range_name(9)
π drm_get_color_range_name(9) β Kernel API Manual
okay so bestie, buckle up, we're in the drm_get_color_range_name(9) page β that's the manual name, yes it's a mouthful, no you don't have to say it out loud π
β¨ NAME β¨
drm_get_color_range_name β returns a string for color range. that's it, that's the whole job, and honestly? she ate π
πΈ SYNOPSIS πΈ
const char * drm_get_color_range_name (enum drm_color_range range );
look at her go, one function, one argument, zero drama β¨
π¦ ARGUMENTS π¦
rangeβ the color range you want the name of. that's the one. that's the input. she takes it and she hands you back a name π«Ά
π DESCRIPTION π
okay so here's the thing that makes this one kind of iconic: unlike the other drm_get_*_name functions, this one right here returns a const pointer, which means it is threadsafe. no cap. the other ones? not built like that. this one? built different πβ¨
π₯ SEE ALSO π₯
like, go read the whole friend group, they're all linked 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_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_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)
like literally the entire color-management group chat, iykyk π
ngl bestie, that's the whole page. short, sweet, threadsafe. periodt π
k bye π β this lil page lives over in ./drivers/gpu/drm, dated October 2026, and you were reading drm_get_color_range_name(9). mwah ππ§
π¦ 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