drivers/char/agp/intel-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/intel-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/intel-agp.c- Extension
.c- Size
- 28786 bytes
- Lines
- 925
- Domain
- Driver Families
- Bucket
- drivers/char
- 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.
- 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
linux/module.hlinux/pci.hlinux/slab.hlinux/init.hlinux/kernel.hlinux/pagemap.hlinux/agp_backend.hasm/smp.hagp.hintel-agp.hdrm/intel/intel-gtt.h
Detected Declarations
function intel_fetch_sizefunction __intel_8xx_fetch_sizefunction intel_8xx_fetch_sizefunction intel_815_fetch_sizefunction intel_tlbflushfunction intel_8xx_tlbflushfunction intel_cleanupfunction intel_8xx_cleanupfunction intel_configurefunction intel_815_configurefunction intel_820_tlbflushfunction intel_820_cleanupfunction intel_820_configurefunction intel_840_configurefunction intel_845_configurefunction intel_850_configurefunction intel_860_configurefunction intel_830mp_configurefunction intel_7505_configurefunction agp_intel_probefunction agp_intel_removefunction agp_intel_resumefunction agp_intel_initfunction agp_intel_cleanupmodule init agp_intel_init
Annotated Snippet
static struct pci_driver agp_intel_pci_driver = {
.name = "agpgart-intel",
.id_table = agp_intel_pci_table,
.probe = agp_intel_probe,
.remove = agp_intel_remove,
.driver.pm = &agp_intel_pm_ops,
};
static int __init agp_intel_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_intel_pci_driver);
}
static void __exit agp_intel_cleanup(void)
{
pci_unregister_driver(&agp_intel_pci_driver);
}
module_init(agp_intel_init);
module_exit(agp_intel_cleanup);
MODULE_AUTHOR("Dave Jones, Various @Intel");
MODULE_DESCRIPTION("Intel AGPGART routines");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/slab.h`, `linux/init.h`, `linux/kernel.h`, `linux/pagemap.h`, `linux/agp_backend.h`, `asm/smp.h`.
- Detected declarations: `function intel_fetch_size`, `function __intel_8xx_fetch_size`, `function intel_8xx_fetch_size`, `function intel_815_fetch_size`, `function intel_tlbflush`, `function intel_8xx_tlbflush`, `function intel_cleanup`, `function intel_8xx_cleanup`, `function intel_configure`, `function intel_815_configure`.
- Atlas domain: Driver Families / drivers/char.
- 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.