drivers/accel/rocket/rocket_drv.c
Source file repositories/reference/linux-study-clean/drivers/accel/rocket/rocket_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/accel/rocket/rocket_drv.c- Extension
.c- Size
- 7011 bytes
- Lines
- 305
- Domain
- Driver Families
- Bucket
- drivers/accel
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/drm_accel.hdrm/drm_drv.hdrm/drm_gem.hdrm/drm_ioctl.hdrm/rocket_accel.hlinux/clk.hlinux/err.hlinux/iommu.hlinux/of.hlinux/platform_device.hlinux/pm_runtime.hrocket_device.hrocket_drv.hrocket_gem.hrocket_job.h
Detected Declarations
function rocket_iommu_domain_destroyfunction rocket_iommu_domain_createfunction rocket_iommu_domain_getfunction rocket_iommu_domain_putfunction rocket_openfunction rocket_postclosefunction rocket_probefunction rocket_removefunction find_core_for_devfunction rocket_device_runtime_resumefunction rocket_device_runtime_suspendfunction rocket_registerfunction rocket_unregistermodule init rocket_register
Annotated Snippet
module_init(rocket_register);
module_exit(rocket_unregister);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("DRM driver for the Rockchip NPU IP");
MODULE_AUTHOR("Tomeu Vizoso");
Annotation
- Immediate include surface: `drm/drm_accel.h`, `drm/drm_drv.h`, `drm/drm_gem.h`, `drm/drm_ioctl.h`, `drm/rocket_accel.h`, `linux/clk.h`, `linux/err.h`, `linux/iommu.h`.
- Detected declarations: `function rocket_iommu_domain_destroy`, `function rocket_iommu_domain_create`, `function rocket_iommu_domain_get`, `function rocket_iommu_domain_put`, `function rocket_open`, `function rocket_postclose`, `function rocket_probe`, `function rocket_remove`, `function find_core_for_dev`, `function rocket_device_runtime_resume`.
- Atlas domain: Driver Families / drivers/accel.
- Implementation status: integration 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.