drivers/gpu/drm/i915/gt/mock_engine.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/gt/mock_engine.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/gt/mock_engine.h- Extension
.h- Size
- 742 bytes
- Lines
- 33
- 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/list.hlinux/spinlock.hlinux/timer.hgt/intel_engine.h
Detected Declarations
struct mock_engine
Annotated Snippet
struct mock_engine {
struct intel_engine_cs base;
spinlock_t hw_lock;
struct list_head hw_queue;
struct timer_list hw_delay;
};
struct intel_engine_cs *mock_engine(struct drm_i915_private *i915,
const char *name,
int id);
int mock_engine_init(struct intel_engine_cs *engine);
void mock_engine_flush(struct intel_engine_cs *engine);
void mock_engine_reset(struct intel_engine_cs *engine);
void mock_engine_free(struct intel_engine_cs *engine);
#endif /* !__MOCK_ENGINE_H__ */
Annotation
- Immediate include surface: `linux/list.h`, `linux/spinlock.h`, `linux/timer.h`, `gt/intel_engine.h`.
- Detected declarations: `struct mock_engine`.
- 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.