set_gamma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, welcome to set_gamma(9) β€” the kernel API manual page for set_gamma - set gamma curves ✨ this is the whole vibe.


πŸ’… SYNOPSIS πŸ’…

int set_gamma (struct fbtft_par *par , u32 *curves );

πŸŽ€ ARGUMENTS πŸŽ€

  • par β€” FBTFT parameter object 🫢
  • curves β€” gamma curves, the main character of this whole page πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

Before the gamma curves are applied, they get preprocessed with a <mint>bitmask</mint> to ensure syntactically correct input for the display controller. no cap, that's literally the preprocessing step.

Vibe check: this implies that the curves input parameter might be changed by this function, and illegal gamma values are auto-corrected β€” they are not reported as errors. periodt. πŸ’…


🌈 RETURN 🌈

0 on success, < 0 if error occurred. fr fr, that's the whole return situation.


⭐ SEE ALSO ⭐


xoxo, your kernel bestie πŸ’– β€” source/version: ./drivers/staging/fbtft Β· date: October 2026 πŸŽ€

πŸ“¦ where this page comes from