__extract_blob_lut(9)
β¨ __extract_blob_lut(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a little function with a big job, and honestly? she's giving "quiet luxury." no cap.
πΈ NAME πΈ
__extract_blob_lut β pulls the DRM lut and the lut size out of a blob. that's it, that's the whole vibe β¨
π¦ SYNOPSIS π¦
const struct drm_color_lut * __extract_blob_lut (const struct
drm_property_blob *blob , uint32_t *size );
like, look at her. const struct drm_color_lut * in, uint32_t *size out. iconic signature, no notes π
π ARGUMENTS π
blobβ the DRM color mgmt property blob π this is the thing you're digging through, bestie.sizeβ the lut size π«Ά she's a pointer, so she gets filled in with the size. main character energy fr.
π RETURN π
returns the DRM LUT... or NULL π that's it, that's the whole return story. if it's NULL? yeah. no lut for you. lowkey devastating but okay.
π SEE ALSO π
first up, the kernel file herself lives at ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c π go say hi.
and now, the extended friend group β every single one of these is invited to the group chat π
overview(9)amdgpu_dm_init_color_mod(9)__extract_blob_lut32(9)__is_lut_linear(9)__drm_lut_to_dc_gamma(9)__drm_lut32_to_dc_gamma(9)__drm_ctm_to_dc_matrix(9)__drm_ctm_3x4_to_dc_matrix(9)__set_legacy_tf(9)__set_output_tf(9)__set_output_tf_32(9)__set_input_tf(9)__set_input_tf_32(9)amdgpu_dm_verify_lut3d_size(9)amdgpu_dm_verify_lut_sizes(9)amdgpu_dm_check_crtc_color_mgmt(9)amdgpu_dm_update_crtc_color_mgmt(9)amdgpu_dm_update_plane_color_mgmt(9)
like, that's a whole color-mgmt friend group and this function is the one who introduces you to everybody π§ iykyk.
π real talk though:sizeis a pointer and it gets written to, so pls don't hand her garbage. and if the blob doesn't have what she needs, she hands youNULLand you must check for it. periodt.
and that's the page, bestie π source? it's the kernel file ./drivers/gpu/drm/amd/display/... and this whole thing is dated October 2026 β mwah, go forth and extract those luts π
π¦ 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