zynqmp_disp..._find_format(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘
  • NULL otherwise πŸ’€ (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