zynqmp_disp_...set_bg_color(9)
π zynqmp_disp_blend_set_bg_color(9) β the kernel API manual, bestie edition π
okay so this is a page from the Kernel API Manual (that's the manual name, showing up here at the top instead of as a stuffy header line, you're welcome β¨). It's all about one tiny little function that sets a background color, and honestly? She's small but she matters.
β¨ NAME β¨
zynqmp_disp_blend_set_bg_color β literally just: set the background color. That's the whole job. Iconic, minimal, no notes. π
πΈ SYNOPSIS πΈ
void zynqmp_disp_blend_set_bg_color (struct zynqmp_disp *disp , u32 rcr
, u32 gy , u32 bcb );
so she returns void (meaning: nothing comes back, she just does the thing π«Ά) and she takes four arguments. Four. Count 'em. Let's meet them π
π¦ ARGUMENTS π¦
dispβ the Display controller. This is the main character of the whole operation, the struct everything hangs off of.rcrβ the Red/Cr color component. Red or Cr, depending on your whole situation β more on that in a sec πgyβ the Green/Y color component. Green or Y. Same deal.bcbβ the Blue/Cb color component. Blue or Cb. You're seeing the pattern, right? π
π§ DESCRIPTION π§
okay so listen β this is the part where it all clicks. This function sets the background color to (rcr, gy, bcb). And those three values map to the R, G and B components... or to the Cr, Y and Cb components... respectively.
Which one is it?? Depends on the selected output format, bestie. That's it, that's the twist π So the same three numbers get read one way or the other depending on which output format you've got going on. No cap.
π₯ SEE ALSO π₯
the full squad, in order, no one left behind π
- Kernel file
./drivers/gpu/drm/xlnx/zynqmp_disp.c - enum
zynqmp_dpsub_layer_mode(9) struct zynqmp_disp_format(9)struct zynqmp_disp_layer_dma(9)struct zynqmp_disp_layer_info(9)struct zynqmp_disp_layer(9)struct zynqmp_disp(9)zynqmp_disp_avbuf_set_format(9)zynqmp_disp_avbuf_set_clocks_sources(9)zynqmp_disp_avbuf_enable_channels(9)zynqmp_disp_avbuf_disable_channels(9)zynqmp_disp_avbuf_enable_audio(9)zynqmp_disp_avbuf_disable_audio(9)zynqmp_disp_avbuf_enable_video(9)zynqmp_disp_avbuf_disable_video(9)zynqmp_disp_avbuf_enable(9)zynqmp_disp_avbuf_disable(9)zynqmp_disp_blend_set_output_format(9)zynqmp_disp_blend_set_global_alpha(9)zynqmp_disp_blend_layer_set_csc(9)zynqmp_disp_blend_layer_enable(9)zynqmp_disp_blend_layer_disable(9)zynqmp_disp_layer_find_format(9)zynqmp_disp_layer_find_live_format(9)zynqmp_disp_layer_drm_formats(9)zynqmp_disp_live_layer_formats(9)zynqmp_disp_layer_enable(9)zynqmp_disp_layer_disable(9)zynqmp_disp_layer_set_format(9)zynqmp_disp_layer_set_live_format(9)zynqmp_disp_layer_update(9)zynqmp_disp_layer_release_dma(9)zynqmp_disp_destroy_layers(9)zynqmp_disp_layer_request_dma(9)zynqmp_disp_create_layers(9)zynqmp_disp_enable(9)zynqmp_disp_disable(9)zynqmp_disp_setup_clock(9)
π quick lil sign-off before you go: this page lives in./drivers/gpu/drm/xlnx, it's dated October 2026, and it's part of the samezynqmp_disp_...set_bg_color(9)manual you've been reading this whole time. mwah, go set some background colors bestie π β¨π
π¦ 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