drm_crtc_fill_palette_332(9)
β¨ 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:
- the kernel file
./drivers/gpu/drm/drm_color_mgmt.coverview(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_565(9)drm_crtc_fill_gamma_555(9)drm_crtc_load_palette_8(9)drm_crtc_fill_palette_8(9)drm_color_lut32_check(9)
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
- 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