drivers/accel/rocket/rocket_gem.h
Source file repositories/reference/linux-study-clean/drivers/accel/rocket/rocket_gem.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/accel/rocket/rocket_gem.h- Extension
.h- Size
- 915 bytes
- Lines
- 35
- 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_gem_shmem_helper.h
Detected Declarations
struct rocket_gem_object
Annotated Snippet
struct rocket_gem_object {
struct drm_gem_shmem_object base;
struct rocket_file_priv *driver_priv;
struct rocket_iommu_domain *domain;
struct drm_mm_node mm;
size_t size;
u32 offset;
};
struct drm_gem_object *rocket_gem_create_object(struct drm_device *dev, size_t size);
int rocket_ioctl_create_bo(struct drm_device *dev, void *data, struct drm_file *file);
int rocket_ioctl_prep_bo(struct drm_device *dev, void *data, struct drm_file *file);
int rocket_ioctl_fini_bo(struct drm_device *dev, void *data, struct drm_file *file);
static inline
struct rocket_gem_object *to_rocket_bo(struct drm_gem_object *obj)
{
return container_of(to_drm_gem_shmem_obj(obj), struct rocket_gem_object, base);
}
#endif
Annotation
- Immediate include surface: `drm/drm_gem_shmem_helper.h`.
- Detected declarations: `struct rocket_gem_object`.
- 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.