drivers/infiniband/hw/efa/efa_main.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/hw/efa/efa_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/hw/efa/efa_main.c- Extension
.c- Size
- 17961 bytes
- Lines
- 707
- Domain
- Driver Families
- Bucket
- drivers/infiniband
- 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.
- 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/module.hlinux/pci.hlinux/utsname.hlinux/version.hrdma/ib_user_verbs.hrdma/uverbs_ioctl.hefa.h
Detected Declarations
function unimplemented_aenq_handlerfunction efa_keep_alivefunction efa_release_barsfunction efa_process_comp_eqefunction efa_process_eqefunction efa_intr_msix_compfunction efa_intr_msix_mgmntfunction efa_request_irqfunction efa_setup_comp_irqfunction efa_free_irqfunction efa_setup_mgmnt_irqfunction efa_set_mgmnt_irqfunction efa_request_doorbell_barfunction efa_release_doorbell_barfunction efa_update_hw_hintsfunction efa_stats_initfunction efa_set_host_infofunction efa_destroy_eqfunction efa_create_eqfunction efa_create_eqsfunction efa_destroy_eqsfunction efa_ib_device_addfunction efa_ib_device_removefunction efa_disable_msixfunction efa_enable_msixfunction efa_device_initfunction efa_remove_devicefunction efa_probefunction efa_removefunction efa_shutdown
Annotated Snippet
static struct pci_driver efa_pci_driver = {
.name = DRV_MODULE_NAME,
.id_table = efa_pci_tbl,
.probe = efa_probe,
.remove = efa_remove,
.shutdown = efa_shutdown,
};
module_pci_driver(efa_pci_driver);
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/utsname.h`, `linux/version.h`, `rdma/ib_user_verbs.h`, `rdma/uverbs_ioctl.h`, `efa.h`.
- Detected declarations: `function unimplemented_aenq_handler`, `function efa_keep_alive`, `function efa_release_bars`, `function efa_process_comp_eqe`, `function efa_process_eqe`, `function efa_intr_msix_comp`, `function efa_intr_msix_mgmnt`, `function efa_request_irq`, `function efa_setup_comp_irq`, `function efa_free_irq`.
- Atlas domain: Driver Families / drivers/infiniband.
- Implementation status: pattern implementation candidate.
- 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.