drivers/char/agp/sworks-agp.c
Source file repositories/reference/linux-study-clean/drivers/char/agp/sworks-agp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/char/agp/sworks-agp.c- Extension
.c- Size
- 15522 bytes
- Lines
- 569
- 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/string.hlinux/slab.hlinux/jiffies.hlinux/agp_backend.hasm/set_memory.hagp.h
Detected Declarations
struct serverworks_page_mapfunction serverworks_create_page_mapfunction serverworks_free_page_mapfunction serverworks_free_gatt_pagesfunction serverworks_create_gatt_pagesfunction serverworks_create_gatt_tablefunction serverworks_free_gatt_tablefunction serverworks_fetch_sizefunction serverworks_tlbflushfunction serverworks_configurefunction serverworks_cleanupfunction serverworks_insert_memoryfunction serverworks_remove_memoryfunction serverworks_agp_enablefunction agp_serverworks_probefunction agp_serverworks_removefunction agp_serverworks_initfunction agp_serverworks_cleanupmodule init agp_serverworks_init
Annotated Snippet
static struct pci_driver agp_serverworks_pci_driver = {
.name = "agpgart-serverworks",
.id_table = agp_serverworks_pci_table,
.probe = agp_serverworks_probe,
.remove = agp_serverworks_remove,
};
static int __init agp_serverworks_init(void)
{
if (agp_off)
return -EINVAL;
return pci_register_driver(&agp_serverworks_pci_driver);
}
static void __exit agp_serverworks_cleanup(void)
{
pci_unregister_driver(&agp_serverworks_pci_driver);
}
module_init(agp_serverworks_init);
module_exit(agp_serverworks_cleanup);
MODULE_DESCRIPTION("Serverworks AGPGART routines");
MODULE_LICENSE("GPL and additional rights");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/init.h`, `linux/string.h`, `linux/slab.h`, `linux/jiffies.h`, `linux/agp_backend.h`, `asm/set_memory.h`.
- Detected declarations: `struct serverworks_page_map`, `function serverworks_create_page_map`, `function serverworks_free_page_map`, `function serverworks_free_gatt_pages`, `function serverworks_create_gatt_pages`, `function serverworks_create_gatt_table`, `function serverworks_free_gatt_table`, `function serverworks_fetch_size`, `function serverworks_tlbflush`, `function serverworks_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.