drivers/gpu/drm/ttm/tests/ttm_mock_manager.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/ttm/tests/ttm_mock_manager.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/ttm/tests/ttm_mock_manager.h
Extension
.h
Size
855 bytes
Lines
31
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct ttm_mock_manager {
	struct ttm_resource_manager man;
	struct gpu_buddy mm;
	u64 default_page_size;
	/* protects allocations of mock buffer objects */
	struct mutex lock;
};

struct ttm_mock_resource {
	struct ttm_resource base;
	struct list_head blocks;
	unsigned long flags;
};

int ttm_mock_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
int ttm_bad_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
int ttm_busy_manager_init(struct ttm_device *bdev, u32 mem_type, u32 size);
void ttm_mock_manager_fini(struct ttm_device *bdev, u32 mem_type);
void ttm_bad_manager_fini(struct ttm_device *bdev, u32 mem_type);

#endif // TTM_MOCK_MANAGER_H

Annotation

Implementation Notes