drivers/gpu/drm/i915/gem/selftests/mock_context.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/gem/selftests/mock_context.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/gem/selftests/mock_context.h
Extension
.h
Size
720 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

#ifndef __MOCK_CONTEXT_H
#define __MOCK_CONTEXT_H

struct file;
struct drm_i915_private;
struct intel_engine_cs;
struct i915_address_space;

void mock_init_contexts(struct drm_i915_private *i915);

struct i915_gem_context *
mock_context(struct drm_i915_private *i915,
	     const char *name);

void mock_context_close(struct i915_gem_context *ctx);

struct i915_gem_context *
live_context(struct drm_i915_private *i915, struct file *file);

struct i915_gem_context *kernel_context(struct drm_i915_private *i915,
					struct i915_address_space *vm);
void kernel_context_close(struct i915_gem_context *ctx);

#endif /* !__MOCK_CONTEXT_H */

Annotation

Implementation Notes