dpu_find_format(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–

  • false if not valid format πŸ™ˆ
  • true on 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