drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c- Extension
.c- Size
- 93638 bytes
- Lines
- 3438
- 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.
- 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/etherdevice.hlinux/iopoll.hnet/rtnetlink.hhclgevf_cmd.hhclgevf_main.hhclgevf_regs.hhclge_mbx.hhnae3.hhclgevf_devlink.hhclge_comm_rss.hhclgevf_trace.h
Detected Declarations
function hclgevf_cmd_sendfunction hclgevf_trace_cmd_sendfunction hclgevf_trace_cmd_getfunction hclgevf_arq_initfunction hclgevf_update_statsfunction hclgevf_get_sset_countfunction hclgevf_get_stringsfunction hclgevf_get_statsfunction hclgevf_build_send_msgfunction hclgevf_get_basic_infofunction hclgevf_get_port_base_vlan_filter_statefunction hclgevf_get_queue_infofunction hclgevf_get_queue_depthfunction hclgevf_get_qid_globalfunction hclgevf_get_pf_media_typefunction hclgevf_alloc_tqpsfunction hclgevf_knic_setupfunction hclgevf_request_link_infofunction hclgevf_update_link_statusfunction hclgevf_update_link_modefunction hclgevf_set_handle_infofunction hclgevf_free_vectorfunction hclgevf_get_vectorfunction hclgevf_get_vector_indexfunction hclgevf_get_rss_hash_keyfunction hclgevf_get_rssfunction hclgevf_set_rssfunction hclgevf_set_rss_tuplefunction hclgevf_get_rss_tuplefunction hclgevf_get_tc_sizefunction hclgevf_bind_ring_to_vectorfunction hclgevf_map_ring_to_vectorfunction hclgevf_unmap_ring_from_vectorfunction hclgevf_put_vectorfunction hclgevf_cmd_set_promisc_modefunction hclgevf_set_promisc_modefunction hclgevf_request_update_promisc_modefunction hclgevf_sync_promisc_modefunction hclgevf_tqp_enable_cmd_sendfunction hclgevf_tqp_enablefunction hclgevf_get_host_mac_addrfunction hclgevf_get_mac_addrfunction hclgevf_set_mac_addrfunction hclgevf_find_mac_nodefunction hclgevf_update_mac_nodefunction hclgevf_update_mac_listfunction hclgevf_add_uc_addrfunction hclgevf_rm_uc_addr
Annotated Snippet
module_init(hclgevf_init);
module_exit(hclgevf_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Huawei Tech. Co., Ltd.");
MODULE_DESCRIPTION("HCLGEVF Driver");
MODULE_VERSION(HCLGEVF_MOD_VERSION);
Annotation
- Immediate include surface: `linux/etherdevice.h`, `linux/iopoll.h`, `net/rtnetlink.h`, `hclgevf_cmd.h`, `hclgevf_main.h`, `hclgevf_regs.h`, `hclge_mbx.h`, `hnae3.h`.
- Detected declarations: `function hclgevf_cmd_send`, `function hclgevf_trace_cmd_send`, `function hclgevf_trace_cmd_get`, `function hclgevf_arq_init`, `function hclgevf_update_stats`, `function hclgevf_get_sset_count`, `function hclgevf_get_strings`, `function hclgevf_get_stats`, `function hclgevf_build_send_msg`, `function hclgevf_get_basic_info`.
- Atlas domain: Driver Families / drivers/net.
- 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.