drm_crtc_fill_palette_332(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_crtc_fill_palette_332 ✨

okay bestie, so this one lives in the Kernel API Manual (yes, that's the manual name, we're fancy now πŸ’…) and it's literally the function that gives your CRTC a cute lil default palette. Let's get into it πŸŽ€


🌸 NAME 🌸

drm_crtc_fill_palette_332 β€” it programs a default palette for RGB332-like formats. that's it, that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

void drm_crtc_fill_palette_332 (struct drm_crtc *crtc ,
drm_crtc_set_lut_func set_palette );

like, two args, both important, no drama πŸ’–


🫢 ARGUMENTS 🫢

  • crtc β€” the CRTC that's actually displaying stuff. your main character, fr fr πŸ‘‘
  • set_palette β€” the callback for programming the hardware gamma LUT. it's giving "you do the actual hardware work, i'll just hand you the values" energy 😭

πŸ’œ DESCRIPTION πŸ’œ

it programs an RGB332 palette to hardware. that's the tea πŸ“ no cap, that's literally what it does β€” hands the hardware a default RGB332-style palette through your fancy little callback. iconic behavior honestly ✨


🌈 SEE ALSO 🌈

bestie there are SO many friends in this group chat, i'm obsessed πŸ’€ go read these:


ngl this one is short and sweet β€” it fills a palette, the callback does the heavy lifting, and everybody slays 🧚

aaaand that's the page! this lil gem comes from ./drivers/gpu/drm, dated October 2026, and it's filed under drm_crtc_fill_palette_332(9) in case you need to find it again. periodt πŸ’…βœ¨

πŸ“¦ where this page comes from