pvr_gem_get_dma_addr(9)
π 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:
0on success, or π-EINVALif 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:
pvr_gem_object_flags_validate(9)pvr_gem_object_into_handle(9)pvr_gem_object_from_handle(9)pvr_gem_object_vmap(9)pvr_gem_object_vunmap(9)pvr_gem_object_zero(9)pvr_gem_create_object(9)pvr_gem_object_create(9)
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
- 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