drivers/gpu/drm/xe/xe_mem_pool.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_mem_pool.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xe/xe_mem_pool.h- Extension
.h- Size
- 1235 bytes
- Lines
- 36
- 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/sizes.hlinux/types.hdrm/drm_mm.hxe_mem_pool_types.h
Detected Declarations
struct drm_printerstruct xe_mem_poolstruct xe_tile
Annotated Snippet
#ifndef _XE_MEM_POOL_H_
#define _XE_MEM_POOL_H_
#include <linux/sizes.h>
#include <linux/types.h>
#include <drm/drm_mm.h>
#include "xe_mem_pool_types.h"
struct drm_printer;
struct xe_mem_pool;
struct xe_tile;
struct xe_mem_pool *xe_mem_pool_init(struct xe_tile *tile, u32 size,
u32 guard, int flags);
void xe_mem_pool_sync(struct xe_mem_pool *pool);
void xe_mem_pool_swap_shadow_locked(struct xe_mem_pool *pool);
void xe_mem_pool_sync_shadow_locked(struct xe_mem_pool_node *node);
u64 xe_mem_pool_gpu_addr(struct xe_mem_pool *pool);
void *xe_mem_pool_cpu_addr(struct xe_mem_pool *pool);
struct mutex *xe_mem_pool_bo_swap_guard(struct xe_mem_pool *pool);
void xe_mem_pool_bo_flush_write(struct xe_mem_pool_node *node);
void xe_mem_pool_bo_sync_read(struct xe_mem_pool_node *node);
struct xe_mem_pool_node *xe_mem_pool_alloc_node(void);
int xe_mem_pool_insert_node(struct xe_mem_pool *pool,
struct xe_mem_pool_node *node, u32 size);
void xe_mem_pool_free_node(struct xe_mem_pool_node *node);
void *xe_mem_pool_node_cpu_addr(struct xe_mem_pool_node *node);
void xe_mem_pool_dump(struct xe_mem_pool *pool, struct drm_printer *p);
#endif
Annotation
- Immediate include surface: `linux/sizes.h`, `linux/types.h`, `drm/drm_mm.h`, `xe_mem_pool_types.h`.
- Detected declarations: `struct drm_printer`, `struct xe_mem_pool`, `struct xe_tile`.
- 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.