drivers/gpu/drm/i915/i915_pci.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/i915_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/i915_pci.c- Extension
.c- Size
- 26686 bytes
- Lines
- 1043
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/drm_color_mgmt.hdrm/drm_drv.hdrm/intel/pci_config.hdrm/intel/pciids.hdisplay/intel_display_driver.hgt/intel_gt_regs.hgt/intel_sa_media.hgem/i915_gem_object_types.hi915_driver.hi915_drv.hi915_pci.hi915_reg.h
Detected Declarations
function i915_pci_removefunction device_id_in_listfunction id_forcedfunction id_blockedfunction i915_pci_resource_validfunction intel_mmio_bar_validfunction i915_pci_probefunction i915_pci_shutdownfunction i915_pci_register_driverfunction i915_pci_unregister_driver
Annotated Snippet
static struct pci_driver i915_pci_driver = {
.name = DRIVER_NAME,
.id_table = pciidlist,
.probe = i915_pci_probe,
.remove = i915_pci_remove,
.shutdown = i915_pci_shutdown,
.driver.pm = &i915_pm_ops,
};
int i915_pci_register_driver(void)
{
return pci_register_driver(&i915_pci_driver);
}
void i915_pci_unregister_driver(void)
{
pci_unregister_driver(&i915_pci_driver);
}
Annotation
- Immediate include surface: `drm/drm_color_mgmt.h`, `drm/drm_drv.h`, `drm/intel/pci_config.h`, `drm/intel/pciids.h`, `display/intel_display_driver.h`, `gt/intel_gt_regs.h`, `gt/intel_sa_media.h`, `gem/i915_gem_object_types.h`.
- Detected declarations: `function i915_pci_remove`, `function device_id_in_list`, `function id_forced`, `function id_blocked`, `function i915_pci_resource_valid`, `function intel_mmio_bar_valid`, `function i915_pci_probe`, `function i915_pci_shutdown`, `function i915_pci_register_driver`, `function i915_pci_unregister_driver`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: pattern 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.