drivers/accel/rocket/rocket_job.h
Source file repositories/reference/linux-study-clean/drivers/accel/rocket/rocket_job.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/accel/rocket/rocket_job.h- Extension
.h- Size
- 1208 bytes
- Lines
- 53
- Domain
- Driver Families
- Bucket
- drivers/accel
- 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
drm/drm_drv.hdrm/gpu_scheduler.hrocket_core.hrocket_drv.h
Detected Declarations
struct rocket_taskstruct rocket_job
Annotated Snippet
struct rocket_task {
u64 regcmd;
u32 regcmd_count;
};
struct rocket_job {
struct drm_sched_job base;
struct rocket_device *rdev;
struct drm_gem_object **in_bos;
struct drm_gem_object **out_bos;
u32 in_bo_count;
u32 out_bo_count;
struct rocket_task *tasks;
u32 task_count;
u32 next_task_idx;
/* Fence to be signaled by drm-sched once its done with the job */
struct dma_fence *inference_done_fence;
/* Fence to be signaled by IRQ handler when the job is complete. */
struct dma_fence *done_fence;
struct rocket_iommu_domain *domain;
struct kref refcount;
};
int rocket_ioctl_submit(struct drm_device *dev, void *data, struct drm_file *file);
int rocket_job_init(struct rocket_core *core);
void rocket_job_fini(struct rocket_core *core);
int rocket_job_open(struct rocket_file_priv *rocket_priv);
void rocket_job_close(struct rocket_file_priv *rocket_priv);
int rocket_job_is_idle(struct rocket_core *core);
#endif
Annotation
- Immediate include surface: `drm/drm_drv.h`, `drm/gpu_scheduler.h`, `rocket_core.h`, `rocket_drv.h`.
- Detected declarations: `struct rocket_task`, `struct rocket_job`.
- Atlas domain: Driver Families / drivers/accel.
- 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.