__set_output_tf(9)
π __set_output_tf(9) π
okay so bestie, welcome to the Kernel API Manual β yes the actual Kernel API Manual, we're in the big leagues now π
β and today's main character is __set_output_tf, which (per its NAME, obviously) calculates the output transfer function based on expected input space. that's it, that's the whole glamorous job β¨
β¨ SYNOPSIS β¨
int __set_output_tf (struct dc_transfer_func *func , const struct
drm_color_lut *lut , uint32_t lut_size , bool has_rom );
four args, one int back, no cap π«Ά
π¦ ARGUMENTS π¦
so like, here's the cast of characters, and every single one of them matters:
funcβ the transfer function. this is the thing getting set up, the main character of the operation πlutβ the lookup table that defines the color space. literally the whole palette, the vibe-definer πlut_sizeβ the size of the respective lut. yes, that lut, the one right above βhas_romβ if ROM can be used for hardcoded curve. a little yes/no flag, lowkey important π
π RETURN π
0β in case of success. slay β¨-ENOMEMβ if it fails π (memory said no, not today)
πΈ SEE ALSO πΈ
okay this list is long long, but we do not skip a single one, periodt π
The kernel file itself β ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c β that's the source, the origin story π§
and then the whole friend group:
overview(9)amdgpu_dm_init_color_mod(9)__extract_blob_lut(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_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. the way that's nineteen entries. obsessed, honestly π₯
real talk though: if you're poking at colour management in amdgpu_dm, go read those β this page only covers the one function, no extra lore invented here π«Ά
mwah, that's the page π this little love letter came from ./drivers/gpu/drm/amd/display/... and the manual's hanging out in October 2026 β and yes, it's still called __set_output_tf(9) at the bottom too, consistency icon π
β¨
π¦ 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