drivers/net/ethernet/huawei/hinic3/hinic3_main.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/huawei/hinic3/hinic3_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/huawei/hinic3/hinic3_main.c- Extension
.c- Size
- 14863 bytes
- Lines
- 564
- Domain
- Driver Families
- Bucket
- drivers/net
- 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/etherdevice.hlinux/netdevice.hhinic3_common.hhinic3_hw_comm.hhinic3_hwdev.hhinic3_hwif.hhinic3_lld.hhinic3_nic_cfg.hhinic3_nic_dev.hhinic3_nic_io.hhinic3_rss.hhinic3_rx.hhinic3_tx.h
Detected Declarations
function init_intr_coal_paramfunction hinic3_init_intr_coalescefunction hinic3_free_intr_coalescefunction hinic3_alloc_txrxqsfunction hinic3_free_txrxqsfunction hinic3_periodic_work_handlerfunction hinic3_init_nic_devfunction hinic3_sw_initfunction hinic3_sw_uninitfunction hinic3_assign_netdev_opsfunction netdev_feature_initfunction hinic3_set_default_hw_featurefunction hinic3_link_status_changefunction hinic3_port_module_event_handlerfunction hinic3_nic_eventfunction hinic3_free_nic_devfunction hinic3_nic_probefunction hinic3_nic_removefunction hinic3_nic_lld_initfunction hinic3_nic_lld_exitmodule init hinic3_nic_lld_init
Annotated Snippet
module_init(hinic3_nic_lld_init);
module_exit(hinic3_nic_lld_exit);
MODULE_AUTHOR("Huawei Technologies CO., Ltd");
MODULE_DESCRIPTION(HINIC3_NIC_DRV_DESC);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/etherdevice.h`, `linux/netdevice.h`, `hinic3_common.h`, `hinic3_hw_comm.h`, `hinic3_hwdev.h`, `hinic3_hwif.h`, `hinic3_lld.h`, `hinic3_nic_cfg.h`.
- Detected declarations: `function init_intr_coal_param`, `function hinic3_init_intr_coalesce`, `function hinic3_free_intr_coalesce`, `function hinic3_alloc_txrxqs`, `function hinic3_free_txrxqs`, `function hinic3_periodic_work_handler`, `function hinic3_init_nic_dev`, `function hinic3_sw_init`, `function hinic3_sw_uninit`, `function hinic3_assign_netdev_ops`.
- Atlas domain: Driver Families / drivers/net.
- 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.