drivers/gpu/drm/i915/gem/i915_gem_object.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/gem/i915_gem_object.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/gem/i915_gem_object.h- Extension
.h- Size
- 27764 bytes
- Lines
- 875
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/drm_gem.hdrm/drm_file.hdrm/drm_device.hintel_memory_region.hi915_gem_object_types.hi915_gem_gtt.hi915_gem_ww.hi915_vma_types.h
Detected Declarations
struct drm_scanout_bufferstruct intel_panicenum intel_region_idfunction i915_gem_object_size_2bigfunction i915_gem_object_lookup_rcufunction i915_gem_object_get_rcufunction i915_gem_object_lookupfunction i915_gem_object_getfunction i915_gem_object_putfunction assert_object_held_sharedfunction __i915_gem_object_lockfunction i915_gem_object_lockfunction i915_gem_object_lock_interruptiblefunction i915_gem_object_trylockfunction i915_gem_object_unlockfunction i915_gem_object_set_readonlyfunction i915_gem_object_is_readonlyfunction i915_gem_object_is_contiguousfunction i915_gem_object_is_volatilefunction i915_gem_object_set_volatilefunction i915_gem_object_has_tiling_quirkfunction i915_gem_object_set_tiling_quirkfunction i915_gem_object_clear_tiling_quirkfunction i915_gem_object_is_protectedfunction i915_gem_object_type_hasfunction i915_gem_object_is_shrinkablefunction i915_gem_object_has_self_managed_shrink_listfunction i915_gem_object_is_proxyfunction i915_gem_object_never_mmapfunction i915_gem_object_is_framebufferfunction i915_gem_object_get_tilingfunction i915_gem_object_is_tiledfunction i915_gem_object_get_stridefunction i915_gem_tile_heightfunction i915_gem_object_get_tile_heightfunction i915_gem_object_get_tile_row_sizefunction __i915_gem_object_page_iter_get_sgfunction __i915_gem_object_page_iter_get_sgfunction i915_gem_object_pin_pagesfunction i915_gem_object_has_pagesfunction __i915_gem_object_pin_pagesfunction i915_gem_object_has_pinned_pagesfunction __i915_gem_object_unpin_pagesfunction i915_gem_object_unpin_pagesfunction i915_gem_object_flush_mapfunction i915_gem_object_unpin_mapfunction i915_gem_object_finish_accessfunction __start_cpu_write
Annotated Snippet
static inline bool i915_gem_object_is_userptr(struct drm_i915_gem_object *obj) { return false; }
static inline int i915_gem_object_userptr_submit_init(struct drm_i915_gem_object *obj) { GEM_BUG_ON(1); return -ENODEV; }
static inline int i915_gem_object_userptr_submit_done(struct drm_i915_gem_object *obj) { GEM_BUG_ON(1); return -ENODEV; }
static inline int i915_gem_object_userptr_validate(struct drm_i915_gem_object *obj) { GEM_BUG_ON(1); return -ENODEV; }
#endif
#endif
Annotation
- Immediate include surface: `drm/drm_gem.h`, `drm/drm_file.h`, `drm/drm_device.h`, `intel_memory_region.h`, `i915_gem_object_types.h`, `i915_gem_gtt.h`, `i915_gem_ww.h`, `i915_vma_types.h`.
- Detected declarations: `struct drm_scanout_buffer`, `struct intel_panic`, `enum intel_region_id`, `function i915_gem_object_size_2big`, `function i915_gem_object_lookup_rcu`, `function i915_gem_object_get_rcu`, `function i915_gem_object_lookup`, `function i915_gem_object_get`, `function i915_gem_object_put`, `function assert_object_held_shared`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.