drivers/atm/solos-pci.c
Source file repositories/reference/linux-study-clean/drivers/atm/solos-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/atm/solos-pci.c- Extension
.c- Size
- 39604 bytes
- Lines
- 1493
- Domain
- Driver Families
- Bucket
- drivers/atm
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/interrupt.hlinux/module.hlinux/kernel.hlinux/errno.hlinux/ioport.hlinux/types.hlinux/pci.hlinux/atm.hlinux/atmdev.hlinux/skbuff.hlinux/sysfs.hlinux/device.hlinux/kobject.hlinux/firmware.hlinux/ctype.hlinux/swab.hlinux/slab.hsolos-attrlist.c
Detected Declarations
struct pkt_hdrstruct solos_skb_cbstruct solos_cardstruct solos_paramstruct geos_gpio_attrfunction solos_popfunction solos_param_showfunction solos_param_storefunction RxBitRatefunction process_commandfunction console_showfunction send_commandfunction console_storefunction geos_gpio_storefunction geos_gpio_showfunction hardware_showfunction flash_upgradefunction solos_irqfunction solos_bhfunction popenfunction pclosefunction print_bufferfunction fpga_queuefunction fpga_txfunction psendfunction fpga_probefunction atm_initfunction atm_removefunction fpga_removefunction solos_pci_initfunction solos_pci_exitmodule init solos_pci_init
Annotated Snippet
static struct pci_driver fpga_driver = {
.name = "solos",
.id_table = fpga_pci_tbl,
.probe = fpga_probe,
.remove = fpga_remove,
};
static int __init solos_pci_init(void)
{
BUILD_BUG_ON(sizeof(struct solos_skb_cb) > sizeof(((struct sk_buff *)0)->cb));
printk(KERN_INFO "Solos PCI Driver Version %s\n", VERSION);
return pci_register_driver(&fpga_driver);
}
static void __exit solos_pci_exit(void)
{
pci_unregister_driver(&fpga_driver);
printk(KERN_INFO "Solos PCI Driver %s Unloaded\n", VERSION);
}
module_init(solos_pci_init);
module_exit(solos_pci_exit);
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/ioport.h`, `linux/types.h`, `linux/pci.h`, `linux/atm.h`.
- Detected declarations: `struct pkt_hdr`, `struct solos_skb_cb`, `struct solos_card`, `struct solos_param`, `struct geos_gpio_attr`, `function solos_pop`, `function solos_param_show`, `function solos_param_store`, `function RxBitRate`, `function process_command`.
- Atlas domain: Driver Families / drivers/atm.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.