drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h- Extension
.h- Size
- 1272 bytes
- Lines
- 49
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/gpu_buddy.hdrm/ttm/ttm_device.h
Detected Declarations
struct xe_ttm_vram_mgrstruct xe_ttm_vram_mgr_resource
Annotated Snippet
struct xe_ttm_vram_mgr {
/** @manager: Base TTM resource manager */
struct ttm_resource_manager manager;
/** @mm: DRM buddy allocator which manages the VRAM */
struct gpu_buddy mm;
/** @visible_size: Proped size of the CPU visible portion */
u64 visible_size;
/** @visible_avail: CPU visible portion still unallocated */
u64 visible_avail;
/** @default_page_size: default page size */
u64 default_page_size;
/** @lock: protects allocations of VRAM */
struct mutex lock;
/** @mem_type: The TTM memory type */
u32 mem_type;
};
/**
* struct xe_ttm_vram_mgr_resource - Xe TTM VRAM resource
*/
struct xe_ttm_vram_mgr_resource {
/** @base: Base TTM resource */
struct ttm_resource base;
/** @blocks: list of DRM buddy blocks */
struct list_head blocks;
/** @used_visible_size: How many CPU visible bytes this resource is using */
u64 used_visible_size;
/** @flags: flags associated with the resource */
unsigned long flags;
};
#endif
Annotation
- Immediate include surface: `linux/gpu_buddy.h`, `drm/ttm/ttm_device.h`.
- Detected declarations: `struct xe_ttm_vram_mgr`, `struct xe_ttm_vram_mgr_resource`.
- 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.