drm_crtc_fill_gamma_565(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 drm_crtc_fill_gamma_565(9) β€” Kernel API Manual πŸ’…

okay so bestie, welcome to the drm_crtc_fill_gamma_565 page, aka the little kernel function that hands your display a default gamma ramp for RGB565-ish formats ✨ no cap, it's a whole vibe.


🌸 SYNOPSIS 🌸

void drm_crtc_fill_gamma_565 (struct drm_crtc *crtc ,
drm_crtc_set_lut_func set_gamma );

literally that's the whole signature, she's compact and she knows it πŸŽ€


✨ ARGUMENTS ✨

  • crtc β€” the CRTC that's doing the displaying, aka the main character actually putting pixels on your screen πŸ‘‘
  • set_gamma β€” the callback that programs the hardware gamma LUT, the little worker bee that makes it real 🐝

πŸ’– DESCRIPTION πŸ’–

Programs a default gamma ramp to hardware. that's it, that's the whole job β€” she fills in the gamma, she sends it to the hardware, she slays πŸ’…

fr fr, this is the "just give me something sane as a starting point" function. it's giving low-effort-but-iconic.

πŸ¦‹ SEE ALSO πŸ¦‹

like, go read these too, they're all part of the same friend group:

  • Kernel file ./drivers/gpu/drm/drm_color_mgmt.c overview(9)
  • drm_color_ctm_s31_32_to_qm_n(9)
  • drm_crtc_enable_color_mgmt(9)
  • drm_mode_crtc_set_gamma_size(9)
  • drm_crtc_supports_legacy_gamma(9)
  • drm_crtc_legacy_gamma_set(9)
  • drm_mode_gamma_set_ioctl(9)
  • drm_mode_gamma_get_ioctl(9)
  • drm_get_color_encoding_name(9)
  • drm_get_color_range_name(9)
  • drm_plane_create_color_properties(9)
  • drm_color_lut_check(9)
  • drm_crtc_load_gamma_888(9)
  • drm_crtc_load_gamma_565_from_888(9)
  • drm_crtc_load_gamma_555_from_888(9)
  • drm_crtc_fill_gamma_888(9)
  • drm_crtc_fill_gamma_555(9)
  • drm_crtc_load_palette_8(9)
  • drm_crtc_fill_palette_332(9)
  • drm_crtc_fill_palette_8(9)
  • drm_color_lut32_check(9)

aaaand that's the page bestie 🫢 this lil drop comes to you from ./drivers/gpu/drm, dated October 2026 β€” screenshot it, frame it, put it on your fridge, it's iconic βœ¨πŸ’œ

πŸ“¦ where this page comes from