drivers/gpu/drm/imagination/pvr_gem.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/imagination/pvr_gem.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/imagination/pvr_gem.c- Extension
.c- Size
- 12139 bytes
- Lines
- 430
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
pvr_device.hpvr_gem.hpvr_vm.hdrm/drm_gem.hdrm/drm_prime.hlinux/compiler.hlinux/compiler_attributes.hlinux/dma-buf.hlinux/dma-direction.hlinux/dma-mapping.hlinux/err.hlinux/gfp.hlinux/iosys-map.hlinux/log2.hlinux/mutex.hlinux/pagemap.hlinux/property.hlinux/refcount.hlinux/scatterlist.h
Detected Declarations
function pvr_gem_object_freefunction pvr_gem_mmapfunction pvr_gem_object_flags_validatefunction pvr_gem_object_into_handlefunction pvr_gem_object_from_handlefunction pvr_gem_object_vmapfunction pvr_gem_object_vunmapfunction pvr_gem_object_zerofunction pvr_gem_create_objectfunction pvr_gem_object_createfunction pvr_gem_get_dma_addr
Annotated Snippet
if (offset >= accumulated_offset && offset < new_offset) {
*dma_addr_out = sg_dma_address(sgl) +
(offset - accumulated_offset);
return 0;
}
accumulated_offset = new_offset;
}
return -EINVAL;
}
Annotation
- Immediate include surface: `pvr_device.h`, `pvr_gem.h`, `pvr_vm.h`, `drm/drm_gem.h`, `drm/drm_prime.h`, `linux/compiler.h`, `linux/compiler_attributes.h`, `linux/dma-buf.h`.
- Detected declarations: `function pvr_gem_object_free`, `function pvr_gem_mmap`, `function pvr_gem_object_flags_validate`, `function pvr_gem_object_into_handle`, `function pvr_gem_object_from_handle`, `function pvr_gem_object_vmap`, `function pvr_gem_object_vunmap`, `function pvr_gem_object_zero`, `function pvr_gem_create_object`, `function pvr_gem_object_create`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.