__set_output_tf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ __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:

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