pvr_gem_get_dma_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pvr_gem_get_dma_addr β€” a kernel API manual, but make it make sense

okay so bestie, welcome to pvr_gem_get_dma_addr(9), straight out of the Kernel API Manual ✨ this one's a little function with a big job: it gets you the DMA address for a given offset inside an object. that's it. that's the whole vibe. and honestly? she ate.


🌸 NAME 🌸

pvr_gem_get_dma_addr β€” Get DMA address for given offset in object πŸŽ€

like, literally what it says on the tin. no cap.


✨ SYNOPSIS ✨

int pvr_gem_get_dma_addr (struct pvr_gem_object *pvr_obj , u32 offset ,
dma_addr_t *dma_addr_out );

look at her. three arguments, returns an int, zero drama. main character energy fr fr 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pvr_obj β€” Pointer to object to lookup address in. this is your fave, the thing you're poking around inside πŸ”
  • offset β€” Offset within object to lookup address at. like, where inside the object you're looking. be normal about it πŸ’…
  • dma_addr_out β€” Pointer to location to store DMA address. this is the little basket where the answer goes 🧺✨

πŸ’– RETURN πŸ’–

so what do you get back? two possibilities, and only two:

  • 0 on success, or πŸŽ‰
  • -EINVAL if object is not currently backed, or if offset is out of valid range for this object. 😭 like, either there's nothing behind the object right now, or you asked for an offset that just doesn't exist in it. rude but valid.
bestie heads up: -EINVAL is the only error listed here, so that's the one you're checking for. don't go inventing other error codes, iykyk πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file for this one lives at ./drivers/gpu/drm/imagination/pvr_gem.c β€” go say hi 🌈

and then the whole friend group:

all iconic, all in the ./drivers/gpu/drm/imagination directory, all worth a read πŸ“


aaaand that's the page!! 🧚 from the ./drivers/gpu/drm/imagination source, dated October 2026, and yes the footer still says pvr_gem_get_dma_addr(9) because we keep the branding πŸ’œ mwah, go get those DMA addresses, bestie β€” slay πŸ”₯

πŸ“¦ where this page comes from