drivers/char/agp/amd-k7-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/amd-k7-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/amd-k7-agp.c- Extension
.c- Size
- 15329 bytes
- Lines
- 553
- 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/init.hlinux/agp_backend.hlinux/page-flags.hlinux/mm.hlinux/slab.hasm/set_memory.hagp.h
Detected Declarations
struct amd_page_mapfunction amd_create_page_mapfunction amd_free_page_mapfunction amd_free_gatt_pagesfunction amd_create_gatt_pagesfunction amd_create_gatt_tablefunction amd_free_gatt_tablefunction amd_irongate_fetch_sizefunction amd_irongate_configurefunction amd_irongate_cleanupfunction amd_irongate_tlbflushfunction amd_insert_memoryfunction amd_remove_memoryfunction agp_amdk7_probefunction agp_amdk7_removefunction agp_amdk7_resumefunction agp_amdk7_initfunction agp_amdk7_cleanupmodule init agp_amdk7_init
Annotated Snippet
static struct pci_driver agp_amdk7_pci_driver = {
.name = "agpgart-amdk7",
.id_table = agp_amdk7_pci_table,
.probe = agp_amdk7_probe,
.remove = agp_amdk7_remove,
.driver.pm = &agp_amdk7_pm_ops,
};
static int __init agp_amdk7_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_amdk7_pci_driver);
}
static void __exit agp_amdk7_cleanup(void)
{
pci_unregister_driver(&agp_amdk7_pci_driver);
}
module_init(agp_amdk7_init);
module_exit(agp_amdk7_cleanup);
MODULE_DESCRIPTION("AMD K7 AGPGART routines");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/agp_backend.h`, `linux/page-flags.h`, `linux/mm.h`, `linux/slab.h`, `asm/set_memory.h`.
- Detected declarations: `struct amd_page_map`, `function amd_create_page_map`, `function amd_free_page_map`, `function amd_free_gatt_pages`, `function amd_create_gatt_pages`, `function amd_create_gatt_table`, `function amd_free_gatt_table`, `function amd_irongate_fetch_size`, `function amd_irongate_configure`, `function amd_irongate_cleanup`.
- 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.