__set_input_tf_32(9)
π __set_input_tf_32(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel API docs (yes, the Kernel API Manual, we're fancy like that) and you land on this little icon. __set_input_tf_32 β say it with me β it calculates the input transfer function based on expected input space. that's the whole vibe. it's giving "i know what your input space is gonna be, so let me set up the transfer function accordingly" β¨
β¨ SYNOPSIS β¨
int __set_input_tf_32 (struct dc_color_caps *caps , struct
dc_transfer_func *func , const struct drm_color_lut32 *lut , uint32_t
lut_size );
like, it returns an int, takes four things, and yes the line breaks in the original really do go like that. no cap. π«Ά
πΈ ARGUMENTS πΈ
capsβ your dc color capabilities, aka the receipts on what the display controller can actually do πfuncβ the transfer function itself. the main character, honestly πlutβ the lookup table that defines the color space. it's aconst struct drm_color_lut32 *so hands off, we're just reading πlut_sizeβ size of the respective lut. auint32_t. respect the size, bestie π
π RETURN π
0β in case of success. slay. we love a zero π-ENOMEMβ if it fails. that's the out-of-memory one, so if you see it, memory said "not today" π
π¦ SEE ALSO π¦
the kernel file lives at ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c β go read the source, iykyk π
and the whole friend group is here, no one left out:
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(9)__set_output_tf_32(9)__set_input_tf(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)
lowkey the_32at the end matters β there's a whole non-_32sibling up there in the list, so don't get them twisted bestie π«Ά
and that's the page!! mwah π it came from ./drivers/gpu/drm/amd/display/... and it's dated October 2026, version __set_input_tf_32(9) β so when you cite it in your essay, you're welcome πβ¨π§
π¦ 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