set_gamma(9)
πΈ 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 β
- Kernel file
./drivers/staging/fbtft/fb_st7789v.cenumst7789v_command(9),init_display(9),set_var(9),blank(9)
xoxo, your kernel bestie π β source/version: ./drivers/staging/fbtft Β· date: October 2026 π
π¦ 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