drivers/net/ethernet/broadcom/bnge/bnge_core.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/broadcom/bnge/bnge_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/broadcom/bnge/bnge_core.c- Extension
.c- Size
- 8493 bytes
- Lines
- 436
- 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/init.hlinux/crash_dump.hlinux/module.hlinux/pci.hbnge.hbnge_devlink.hbnge_hwrm.hbnge_hwrm_lib.hbnge_link.h
Detected Declarations
function bnge_print_device_infofunction bnge_aux_registeredfunction bnge_nvm_cfg_ver_getfunction bnge_func_qcapsfunction bnge_func_qrcaps_qcfgfunction bnge_fw_unregister_devfunction bnge_set_dflt_rss_hash_typefunction bnge_fw_register_devfunction bnge_pci_disablefunction bnge_pci_enablefunction bnge_unmap_barsfunction bnge_set_max_func_irqsfunction bnge_get_max_irqfunction bnge_map_db_barfunction bnge_probe_onefunction bnge_remove_onefunction bnge_shutdownfunction bnge_init_modulefunction bnge_exit_modulemodule init bnge_init_module
Annotated Snippet
static struct pci_driver bnge_driver = {
.name = bnge_driver_name,
.id_table = bnge_pci_tbl,
.probe = bnge_probe_one,
.remove = bnge_remove_one,
.shutdown = bnge_shutdown,
};
static int __init bnge_init_module(void)
{
return pci_register_driver(&bnge_driver);
}
module_init(bnge_init_module);
static void __exit bnge_exit_module(void)
{
pci_unregister_driver(&bnge_driver);
}
module_exit(bnge_exit_module);
Annotation
- Immediate include surface: `linux/init.h`, `linux/crash_dump.h`, `linux/module.h`, `linux/pci.h`, `bnge.h`, `bnge_devlink.h`, `bnge_hwrm.h`, `bnge_hwrm_lib.h`.
- Detected declarations: `function bnge_print_device_info`, `function bnge_aux_registered`, `function bnge_nvm_cfg_ver_get`, `function bnge_func_qcaps`, `function bnge_func_qrcaps_qcfg`, `function bnge_fw_unregister_dev`, `function bnge_set_dflt_rss_hash_type`, `function bnge_fw_register_dev`, `function bnge_pci_disable`, `function bnge_pci_enable`.
- 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.