drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c- Extension
.c- Size
- 287750 bytes
- Lines
- 10516
- 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/acpi.hlinux/device.hlinux/etherdevice.hlinux/init.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/module.hlinux/netdevice.hlinux/pci.hlinux/platform_device.hlinux/if_vlan.hlinux/crash_dump.hnet/rtnetlink.hhclge_cmd.hhclge_dcb.hhclge_fd.hhclge_main.hhclge_mbx.hhclge_mdio.hhclge_regs.hhclge_tm.hhclge_err.hhnae3.hhclge_devlink.hhclge_comm_cmd.hhclge_trace.h
Detected Declarations
enum hclge_led_statusfunction hclge_cmd_sendfunction hclge_trace_cmd_sendfunction hclge_trace_cmd_getfunction hclge_mac_update_stats_defectivefunction hclge_mac_update_stats_completefunction hclge_mac_query_reg_numfunction hclge_mac_update_statsfunction hclge_comm_get_countfunction hclge_comm_get_stringsfunction hclge_update_stats_for_allfunction hclge_update_statsfunction hclge_get_sset_countfunction hclge_get_stringsfunction hclge_get_statsfunction hclge_get_mac_statfunction hclge_parse_func_statusfunction hclge_query_function_statusfunction hclge_query_pf_resourcefunction hclge_parse_speedfunction hclge_get_speed_bitfunction hclge_check_port_speedfunction hclge_update_fec_supportfunction hclge_convert_setting_srfunction hclge_convert_setting_lrfunction hclge_convert_setting_crfunction hclge_convert_setting_krfunction hclge_convert_setting_fecfunction hclge_parse_fiber_link_modefunction hclge_parse_backplane_link_modefunction hclge_parse_copper_link_modefunction hclge_parse_link_modefunction hclge_get_max_speedfunction hclge_parse_cfgfunction hclge_get_cfgfunction hclge_set_default_dev_specsfunction hclge_parse_dev_specsfunction hclge_check_dev_specsfunction hclge_query_mac_stats_numfunction hclge_query_dev_specsfunction hclge_get_capfunction hclge_init_kdump_kernel_configfunction hclge_init_tc_configfunction hclge_configurefunction hclge_config_tsofunction hclge_config_grofunction hclge_alloc_tqpsfunction hclge_map_tqps_to_func
Annotated Snippet
module_init(hclge_init);
module_exit(hclge_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Huawei Tech. Co., Ltd.");
MODULE_DESCRIPTION("HCLGE Driver");
MODULE_VERSION(HCLGE_MOD_VERSION);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/device.h`, `linux/etherdevice.h`, `linux/init.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `enum hclge_led_status`, `function hclge_cmd_send`, `function hclge_trace_cmd_send`, `function hclge_trace_cmd_get`, `function hclge_mac_update_stats_defective`, `function hclge_mac_update_stats_complete`, `function hclge_mac_query_reg_num`, `function hclge_mac_update_stats`, `function hclge_comm_get_count`, `function hclge_comm_get_strings`.
- 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.