drm_mode_crt...t_gamma_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_mode_crtc_set_gamma_size β€” set the gamma table size ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a little function with a big job: telling the kernel how big your gamma table is. it's giving "small but mighty" energy, ngl.


🌸 NAME 🌸

drm_mode_crtc_set_gamma_size β€” set the gamma table size πŸŽ€


πŸ’… SYNOPSIS πŸ’…

int drm_mode_crtc_set_gamma_size (struct drm_crtc *crtc , int gamma_size
);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • crtc β€” the CRTC you're setting the gamma table size for, like, the main character of this whole operation πŸ‘‘
  • gamma_size β€” the size of the gamma table, literally just the number πŸ“

🌈 DESCRIPTION 🌈

so here's the vibe: drivers that support gamma tables should set this to the supported gamma table size when they're initializing the CRTC. that's it, that's the whole thing. do it at init time, bestie ✨

and here's the important little caveat β€” currently the drm core only supports a fixed gamma table size. so don't come in here expecting to flex a custom size, because the core said "no ❀️" to that. iykyk πŸ™ˆ


⭐ RETURN ⭐

  • Zero on success πŸ’–
  • negative errno on failure 😭

πŸ”₯ SEE ALSO πŸ”₯

okay this list is long and honestly iconic, so buckle up 🫢


fr fr, gamma table size is one of those tiny details that will absolutely vibe check your whole display pipeline, so set it properly πŸ’€

and that's the whole page, no cap πŸ’œ

shoutout to ./drivers/gpu/drm for hosting this masterpiece, dated October 2026 β€” the drm_mode_crt...t_gamma_size(9) energy is immaculate, periodt 🧚

πŸ“¦ where this page comes from