pvr_dev_query_quirks_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pvr_dev_query_quirks_get(9) β€” aka the Kernel API Manual page you didn't know you needed

okay so bestie, welcome to the glow-up of pvr_dev_query_quirks_get(9) from the Kernel API Manual ✨ β€” this is the lil function that unpacks the whole array of quirks sitting at the address inside a struct drm_pvr_dev_query_quirks, or honestly just tells you how much room you're gonna need for it. lowkey iconic behavior πŸŽ€


🌸 NAME 🌸

pvr_dev_query_quirks_get β€” unpacks the array of quirks at the address given in a struct drm_pvr_dev_query_quirks, or gets the amount of space required for it πŸ’–


✨ SYNOPSIS ✨

int pvr_dev_query_quirks_get (struct pvr_device *pvr_dev , struct drm_pvr_ioctl_dev_query_args *args );

🫢 ARGUMENTS 🫢

  • pvr_dev β€” the device pointer, bestie. your fave lil handle to the actual device πŸ¦‹
  • args β€” [IN] the device query arguments, which contain a pointer to a userspace struct drm_pvr_dev_query_query_quirks πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

so here's the vibe check on how this works, no cap:

if the query object pointer is NULL, then the size field gets updated with the expected size of the query object β€” like, it's just telling you the tea, not handing over the goods πŸ’€

and if the userspace pointer inside the query object is NULL, or the count is short, then no data is copied, periodt. the count field will be updated to whatever was copied β€” or, if either pointer is NULL, to that which would have been copied. and the size field in the query object gets updated to the size copied ✨

literally the main character energy of "i'll tell you what i would have done" πŸ™ˆ

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” or if size/count is requested using a NULL pointer πŸŽ‰
  • -EINVAL if args contained non-zero reserved fields 🚩
  • -E2BIG if the indicated length of the allocation is less than is required to contain the copied data 😭
  • -EFAULT if local memory could not be copied to userspace πŸ’€

🌈 SEE ALSO 🌈

like, go read all of them, iykyk πŸ“šβœ¨


mwah πŸ’‹ that's the whole page, and it lives under ./drivers/gpu/drm/imagination, dated October 2026, served to you fresh from the Kernel API Manual β€” slay, go call it responsibly πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from