drivers/char/agp/ali-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/ali-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/ali-agp.c- Extension
.c- Size
- 10326 bytes
- Lines
- 424
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/module.hlinux/pci.hlinux/init.hlinux/agp_backend.hasm/page.hagp.h
Detected Declarations
function ali_fetch_sizefunction ali_tlbflushfunction ali_cleanupfunction ali_configurefunction m1541_cache_flushfunction ali_destroy_pagefunction m1541_destroy_pagefunction agp_ali_probefunction agp_ali_removefunction agp_ali_initfunction agp_ali_cleanupmodule init agp_ali_init
Annotated Snippet
static struct pci_driver agp_ali_pci_driver = {
.name = "agpgart-ali",
.id_table = agp_ali_pci_table,
.probe = agp_ali_probe,
.remove = agp_ali_remove,
};
static int __init agp_ali_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_ali_pci_driver);
}
static void __exit agp_ali_cleanup(void)
{
pci_unregister_driver(&agp_ali_pci_driver);
}
module_init(agp_ali_init);
module_exit(agp_ali_cleanup);
MODULE_AUTHOR("Dave Jones");
MODULE_DESCRIPTION("ALi AGPGART routines");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/types.h`, `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/agp_backend.h`, `asm/page.h`, `agp.h`.
- Detected declarations: `function ali_fetch_size`, `function ali_tlbflush`, `function ali_cleanup`, `function ali_configure`, `function m1541_cache_flush`, `function ali_destroy_page`, `function m1541_destroy_page`, `function agp_ali_probe`, `function agp_ali_remove`, `function agp_ali_init`.
- 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.