drm_color_lut_check(9)
π drm_color_lut_check(9) β the Kernel API Manual, bestie edition π
okay so this is drm_color_lut_check(9), straight out of the kernel API manual, and it's literally the vibe check for your lookup table β¨
πΈ NAME πΈ
drm_color_lut_check β check validity of lookup table. that's it, that's the whole job, and it does it slayfully π
β¨ SYNOPSIS β¨
int drm_color_lut_check (const struct drm_property_blob *lut , u32 tests );
π«Ά ARGUMENTS π«Ά
lutβ the property blob containing the LUT we're checking. yes bestie, the actual table, right there in a blob, iconic π¦testsβ a bitmask of tests to run. not a single test, a whole bitmask of them, we're doing the full battery π₯
π DESCRIPTION π
so this is the helper that checks whether a userspace-provided lookup table is valid and satisfies the hardware requirements. like, does this table actually make sense, will the hardware be okay with it, all of that π§
drivers pass in a bitmask indicating which of the tests in drm_color_lut_tests should be performed β so you pick your lineup of tests, no cap π
it returns 0 on success, and -EINVAL on failure π (as it should, honestly β invalid is invalid).
ngl, -EINVAL is the moment of truth. if you see it, the table did not pass the vibe check π
π SEE ALSO π
the whole friend group, fr fr β every one of these is linked and every one of them matters π
overview(9)β kernel file./drivers/gpu/drm/drm_color_mgmt.cdrm_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_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)
and that's the page, bestie π it lives in ./drivers/gpu/drm and this particular glow-up is dated October 2026 β go off, kernel docs, 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