dpu_find_format(9)
π dpu_find_format(9) π
okay so bestie, welcome to the Kernel API Manual β this is dpu_find_format, and honestly? her whole job is a vibe check for pixel formats β¨
πΈ NAME πΈ
dpu_find_format β validate if the pixel format is supported
Like, she looks at your format and is literally just like "yeah that's valid" or "no babe." That's the whole gig. Iconic behaviour, no notes π
β¨ SYNOPSIS β¨
bool dpu_find_format (u32 format , const u32 *supported_formats , size_t
num_formats );
Returns a bool, takes three args, we move π«
π¦ ARGUMENTS π¦
formatβ the dpu format, aka the pixel format you're asking about. This is the main character of the whole function ngl πsupported_formatsβ the formats that are supported by dpu HW. So like, the list of what the hardware is actually willing to deal with π«Άnum_formatsβ undescribed π fr fr the docs just gave us-- undescribed --and dipped. We do not know. It's giving mystery. It's giving "figure it out bestie". Presumably a count of something but the manpage isn't saying and neither am I π
π RETURN π
falseif not valid format πtrueon success β¨
Yes that's it, she's a simple girl. Boolean queen. Slay π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/msm/disp/dpu1/dpu_formats.hβ go peek in there if you want the full lore, iykyk π
heads up bestie: this page lives in the Kernel API Manual section 9, and honestly the whole thing is short and sweet. Go read that header file if you need more, because this manpage is not gonna hold your hand π«Ά
mwah, that's the page! π§ββοΈ This little cutie comes from ./drivers/gpu/drm/msm/disp/dpu1, dated October 2026 β take care of her, she validates formats and she's doing her best ππ
π¦ 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