drivers/infiniband/hw/bnxt_re/main.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/hw/bnxt_re/main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/hw/bnxt_re/main.c- Extension
.c- Size
- 76318 bytes
- Lines
- 2615
- 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.hlinux/netdevice.hlinux/ethtool.hlinux/mutex.hlinux/list.hlinux/rculist.hlinux/spinlock.hlinux/pci.hnet/dcbnl.hnet/ipv6.hnet/addrconf.hlinux/if_ether.hlinux/auxiliary_bus.hrdma/ib_verbs.hrdma/ib_user_verbs.hrdma/ib_umem.hrdma/ib_addr.hlinux/hashtable.hlinux/bnxt/ulp.hroce_hsi.hqplib_res.hqplib_sp.hqplib_fp.hqplib_rcfw.hbnxt_re.hib_verbs.hrdma/bnxt_re-abi.hbnxt.hhw_counters.hdebugfs.h
Detected Declarations
struct bnxt_re_dcb_workfunction bnxt_re_set_db_offsetfunction bnxt_re_set_drv_modefunction bnxt_re_destroy_chip_ctxfunction bnxt_re_setup_chip_ctxfunction bnxt_re_get_sriov_func_typefunction bnxt_re_limit_pf_resfunction bnxt_re_limit_vf_resfunction bnxt_re_set_resource_limitsfunction bnxt_re_vf_res_configfunction bnxt_re_is_qp1_qpfunction bnxt_re_update_qp1_tos_dscpfunction bnxt_re_init_dcb_wqfunction bnxt_re_uninit_dcb_wqfunction bnxt_re_dcb_wq_taskfunction bnxt_re_async_notifierfunction bnxt_re_stop_irqfunction bnxt_re_start_irqfunction bnxt_re_register_netdevfunction bnxt_re_init_hwrm_hdrfunction bnxt_re_fill_fw_msgfunction bnxt_re_hwrm_free_vnicfunction bnxt_re_hwrm_alloc_vnicfunction bnxt_re_hwrm_cfg_vnicfunction bnxt_re_hwrm_qcfgfunction bnxt_re_hwrm_qcapsfunction bnxt_re_hwrm_dbr_pacing_qcfgfunction bnxt_re_set_default_pacing_datafunction __get_fifo_occupancyfunction is_dbr_fifo_fullfunction __wait_for_fifo_occupancy_below_thfunction bnxt_re_db_fifo_checkfunction bnxt_re_pacing_timer_expfunction bnxt_re_pacing_alertfunction bnxt_re_initialize_dbr_pacingfunction bnxt_re_deinitialize_dbr_pacingfunction bnxt_re_net_ring_freefunction bnxt_re_net_ring_allocfunction bnxt_re_net_stats_ctx_freefunction bnxt_re_net_stats_ctx_allocfunction bnxt_re_disassociate_ucontextfunction hca_type_showfunction board_id_showfunction bnxt_re_fill_res_mr_entryfunction bnxt_re_fill_res_mr_entry_rawfunction bnxt_re_fill_res_cq_entryfunction bnxt_re_fill_res_cq_entry_rawfunction bnxt_re_fill_res_qp_entry
Annotated Snippet
module_init(bnxt_re_mod_init);
module_exit(bnxt_re_mod_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/netdevice.h`, `linux/ethtool.h`, `linux/mutex.h`, `linux/list.h`, `linux/rculist.h`, `linux/spinlock.h`, `linux/pci.h`.
- Detected declarations: `struct bnxt_re_dcb_work`, `function bnxt_re_set_db_offset`, `function bnxt_re_set_drv_mode`, `function bnxt_re_destroy_chip_ctx`, `function bnxt_re_setup_chip_ctx`, `function bnxt_re_get_sriov_func_type`, `function bnxt_re_limit_pf_res`, `function bnxt_re_limit_vf_res`, `function bnxt_re_set_resource_limits`, `function bnxt_re_vf_res_config`.
- 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.