zynqmp_disp..._find_format(9)
β¨ zynqmp_disp_layer_find_format β kernel api manual energy β¨
okay bestie, so this is a Kernel API Manual page for zynqmp_disp..._find_format(9) and it's genuinely giving "i know where all the formats live" π
buckle up π
πΈ NAME πΈ
zynqmp_disp_layer_find_format β literally the function that finds the format info for a DRM format. that's the whole vibe β¨
π¦ SYNOPSIS π¦
const struct zynqmp_disp_format * zynqmp_disp_layer_find_format (struct
zynqmp_disp_layer *layer , u32 drm_fmt );
like, it takes a layer and a format and hands you back a const struct zynqmp_disp_format *, no biggie π«Ά
π ARGUMENTS π
layerβ the layer π that's the thing you're searching inside, periodt.drm_fmtβ the DRM format you want to search for π the whole reason we're here.
π« DESCRIPTION π«
so what it does is: it searches the display subsystem's format information that corresponds to the DRM format drm_fmt you passed in β for that specific layer β and then it returns a pointer to the format descriptor. that's it, that's the function, and honestly? iconic. π
β RETURN β
- a pointer to the format descriptor if it's found π
NULLotherwise π (no cap, sometimes the format just isn't there)
π₯ SEE ALSO π₯
kernel file ./drivers/gpu/drm/xlnx/zynqmp_disp.c, plus the whole extended universe bestie, we're listing every single one π«Άβ¨:
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_bg_color(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_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 vibe check: the return can legit be NULL, so pls check it before you dereference, bestie. no cap, that's how people get got.
and that's the page!! π§ββοΈ sourced straight from ./drivers/gpu/drm/xlnx, dated October 2026, filed under zynqmp_disp..._find_format(9) β mwah, go slay your format lookups π
ππΈ
π¦ 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