PVR_UOBJ_MIN_SIZE(9)
π PVR_UOBJ_MIN_SIZE(9) β the kernel API manual, bestie edition
okay so you found the PVR_UOBJ_MIN_SIZE page, and honestly? it's a little macro with main character energy. it lives in the Kernel API Manual, and it's about to make your whole copy-size situation effortless. let's get into it π
β¨ NAME β¨
PVR_UOBJ_MIN_SIZE β grab the minimum copy size of a compatible type object. that's it, that's the job, and it does it flawlessly π
πΈ SYNOPSIS πΈ
PVR_UOBJ_MIN_SIZE (_obj_name );
π¦ ARGUMENTS π¦
_obj_nameβ the name of the object. and listen: this cannot be a typename, because the typename is deduced for you. the macro is smart like that, it does not need you to spell it out π
β DESCRIPTION β
this cannot fail. no cap. it's giving "nothing but reliable" energy β the macro simply will not let you down.
the one vibe check it will enforce: using the macro with an incompatible type results in a compiler error. so if the compiler yells at you, that's not the macro being mean, that's the macro being honest π
wanna add compatibility for a type? cute β just list it within the macro in an orderly fashion β¨. the second argument is the name of the last mandatory field of the struct type, and that's what gets used to calculate the size. iykyk.
see also PVR_UOBJ_DECL β they're besties, they show up together π«Ά
π₯ RETURN π₯
the minimum copy size. slay. that's the whole return value, and it ate π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/imagination/pvr_drv.hβPVR user objects.(9) PVR_UOBJ_GET(9)PVR_UOBJ_SET(9)PVR_UOBJ_GET_ARRAY(9)PVR_UOBJ_SET_ARRAY(9)
and that's the whole page, bestie β no notes, periodt β¨
sign-off szn: this iconic little page comes from ./drivers/gpu/drm/imagination, dated October 2026. go forth and fetch those minimum copy sizes responsibly ππ
π¦ 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