drm_color_lut32_check(9)
πΈ NAME πΈ
okay so this is drm_color_lut32_check(9) from the Kernel API Manual β the one and only vibe check for extended lookup tables π
drm_color_lut32_check β check validity of extended lookup table. That's the name + one-liner combo, bestie.
π SYNOPSIS π
Here's the signature exactly so nobody comes for me:
int drm_color_lut32_check (const struct drm_property_blob *lut , u32
tests );
π ARGUMENTS π
lutβ property blob containing extended LUT to check. It's theconst struct drm_property_blob *bestie β the blob holding the extended LUT you're checking.testsβ bitmask of tests to run. Au32bitmask; the driver uses it to say which tests fromdrm_color_lut_testsshould be performed.
β¨ DESCRIPTION β¨
Okay so this helper checks whether a userspace-provided extended lookup table is valid and satisfies hardware requirements. No cap. Drivers pass a bitmask indicating which of the tests in drm_color_lut_tests should be performed.
It returns 0 on success and -EINVAL on failure. That's it: 0 success, -EINVAL failure. periodt.
bestie please keep the blob and the bitmask honest β this is literally the validity check, not a vibe-only situation π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/drm_color_mgmt.cβoverview(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_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)
mwah π cute footer-adjacent sign-off: this page's source/version is ./drivers/gpu/drm, dated October 2026, and it's part of the Kernel API Manual. now go check that LUT, bestie π«Άβ¨
π¦ 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