drivers/infiniband/hw/bng_re/bng_dev.c
Source file repositories/reference/linux-study-clean/drivers/infiniband/hw/bng_re/bng_dev.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/infiniband/hw/bng_re/bng_dev.c- Extension
.c- Size
- 13432 bytes
- Lines
- 521
- 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.
- 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/auxiliary_bus.hrdma/ib_verbs.hbng_res.hbng_sp.hbng_fw.hbnge.hbnge_auxr.hbng_re.hbnge_hwrm.hbng_debugfs.h
Detected Declarations
function bng_re_register_netdevfunction bng_re_destroy_chip_ctxfunction bng_re_setup_chip_ctxfunction bng_re_init_hwrm_hdrfunction bng_re_fill_fw_msgfunction bng_re_net_ring_freefunction bng_re_net_ring_allocfunction bng_re_stats_ctx_freefunction bng_re_stats_ctx_allocfunction bng_re_query_hwrm_versionfunction bng_re_dev_uninitfunction bng_re_dev_initfunction bng_re_add_devicefunction bng_re_remove_devicefunction bng_re_probefunction bng_re_removefunction bng_re_mod_initfunction bng_re_mod_exitmodule init bng_re_mod_init
Annotated Snippet
module_init(bng_re_mod_init);
module_exit(bng_re_mod_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/auxiliary_bus.h`, `rdma/ib_verbs.h`, `bng_res.h`, `bng_sp.h`, `bng_fw.h`, `bnge.h`.
- Detected declarations: `function bng_re_register_netdev`, `function bng_re_destroy_chip_ctx`, `function bng_re_setup_chip_ctx`, `function bng_re_init_hwrm_hdr`, `function bng_re_fill_fw_msg`, `function bng_re_net_ring_free`, `function bng_re_net_ring_alloc`, `function bng_re_stats_ctx_free`, `function bng_re_stats_ctx_alloc`, `function bng_re_query_hwrm_version`.
- Atlas domain: Driver Families / drivers/infiniband.
- Implementation status: integration 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.