drivers/net/wireless/intel/iwlwifi/pcie/drv.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlwifi/pcie/drv.c- Extension
.c- Size
- 55181 bytes
- Lines
- 1361
- Domain
- Driver Families
- Bucket
- drivers/net
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/pci.hlinux/acpi.hfw/acpi.hiwl-trans.hiwl-drv.hiwl-prph.hgen1_2/internal.h
Detected Declarations
function iwl_pci_find_dev_infofunction iwl_pci_probefunction iwl_pci_removefunction iwl_pci_suspendfunction _iwl_pci_resumefunction iwl_pci_restorefunction iwl_pci_resumefunction iwl_pci_dumpfunction iwl_pci_register_driverfunction iwl_pci_unregister_driver
Annotated Snippet
static struct pci_driver iwl_pci_driver = {
.name = DRV_NAME,
.id_table = iwl_hw_card_ids,
.probe = iwl_pci_probe,
.remove = iwl_pci_remove,
.driver.pm = IWL_PM_OPS,
.driver.coredump = iwl_pci_dump,
};
int __must_check iwl_pci_register_driver(void)
{
int ret;
ret = pci_register_driver(&iwl_pci_driver);
if (ret)
pr_err("Unable to initialize PCI module\n");
return ret;
}
void iwl_pci_unregister_driver(void)
{
pci_unregister_driver(&iwl_pci_driver);
}
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/acpi.h`, `fw/acpi.h`, `iwl-trans.h`, `iwl-drv.h`, `iwl-prph.h`, `gen1_2/internal.h`.
- Detected declarations: `function iwl_pci_find_dev_info`, `function iwl_pci_probe`, `function iwl_pci_remove`, `function iwl_pci_suspend`, `function _iwl_pci_resume`, `function iwl_pci_restore`, `function iwl_pci_resume`, `function iwl_pci_dump`, `function iwl_pci_register_driver`, `function iwl_pci_unregister_driver`.
- Atlas domain: Driver Families / drivers/net.
- 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.