drivers/infiniband/hw/qedr/main.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/hw/qedr/main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/hw/qedr/main.c- Extension
.c- Size
- 27781 bytes
- Lines
- 1054
- Domain
- Driver Families
- Bucket
- drivers/infiniband
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/module.hrdma/ib_verbs.hrdma/ib_addr.hrdma/ib_user_verbs.hrdma/iw_cm.hrdma/ib_mad.hlinux/netdevice.hlinux/iommu.hlinux/pci.hnet/addrconf.hlinux/qed/qed_chain.hlinux/qed/qed_if.hqedr.hverbs.hrdma/qedr-abi.hqedr_iw_cm.h
Detected Declarations
function qedr_ib_dispatch_eventfunction qedr_link_layerfunction qedr_get_dev_fw_strfunction qedr_roce_port_immutablefunction qedr_iw_port_immutablefunction hw_rev_showfunction hca_type_showfunction qedr_iw_register_devicefunction qedr_roce_register_devicefunction qedr_register_devicefunction qedr_alloc_mem_sbfunction qedr_free_mem_sbfunction qedr_free_resourcesfunction qedr_alloc_resourcesfunction qedr_pci_set_atomicfunction qedr_irq_handlerfunction qedr_sync_free_irqsfunction qedr_req_msix_irqsfunction qedr_setup_irqsfunction qedr_set_device_attrfunction qedr_unaffiliated_eventfunction qedr_affiliated_eventfunction qedr_init_hwfunction qedr_stop_hwfunction qedr_removefunction qedr_closefunction qedr_shutdownfunction qedr_openfunction qedr_mac_address_changefunction qedr_notifyfunction qedr_init_modulefunction qedr_exit_modulemodule init qedr_init_module
Annotated Snippet
module_init(qedr_init_module);
module_exit(qedr_exit_module);
Annotation
- Immediate include surface: `linux/module.h`, `rdma/ib_verbs.h`, `rdma/ib_addr.h`, `rdma/ib_user_verbs.h`, `rdma/iw_cm.h`, `rdma/ib_mad.h`, `linux/netdevice.h`, `linux/iommu.h`.
- Detected declarations: `function qedr_ib_dispatch_event`, `function qedr_link_layer`, `function qedr_get_dev_fw_str`, `function qedr_roce_port_immutable`, `function qedr_iw_port_immutable`, `function hw_rev_show`, `function hca_type_show`, `function qedr_iw_register_device`, `function qedr_roce_register_device`, `function qedr_register_device`.
- Atlas domain: Driver Families / drivers/infiniband.
- Implementation status: integration 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.