drivers/net/ethernet/huawei/hinic3/hinic3_lld.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/huawei/hinic3/hinic3_lld.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/huawei/hinic3/hinic3_lld.c- Extension
.c- Size
- 10992 bytes
- Lines
- 464
- 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.
- 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/delay.hlinux/iopoll.hhinic3_hw_cfg.hhinic3_hw_comm.hhinic3_hwdev.hhinic3_hwif.hhinic3_lld.hhinic3_mgmt.hhinic3_pci_id_tbl.h
Detected Declarations
function hinic3_adev_svc_supportedfunction hinic3_comm_adev_releasefunction hinic3_del_one_adevfunction hinic3_attach_aux_devicesfunction hinic3_detach_aux_devicesfunction hinic3_adev_event_registerfunction hinic3_adev_event_unregisterfunction hinic3_mapping_barfunction hinic3_unmapping_barfunction hinic3_pci_initfunction hinic3_pci_uninitfunction hinic3_func_initfunction hinic3_func_uninitfunction hinic3_probe_funcfunction hinic3_remove_funcfunction hinic3_probefunction hinic3_removefunction hinic3_shutdownfunction hinic3_lld_initfunction hinic3_lld_exit
Annotated Snippet
static struct pci_driver hinic3_driver = {
.name = HINIC3_NIC_DRV_NAME,
.id_table = hinic3_pci_table,
.probe = hinic3_probe,
.remove = hinic3_remove,
.shutdown = hinic3_shutdown,
.sriov_configure = pci_sriov_configure_simple
};
int hinic3_lld_init(void)
{
return pci_register_driver(&hinic3_driver);
}
void hinic3_lld_exit(void)
{
pci_unregister_driver(&hinic3_driver);
}
Annotation
- Immediate include surface: `linux/delay.h`, `linux/iopoll.h`, `hinic3_hw_cfg.h`, `hinic3_hw_comm.h`, `hinic3_hwdev.h`, `hinic3_hwif.h`, `hinic3_lld.h`, `hinic3_mgmt.h`.
- Detected declarations: `function hinic3_adev_svc_supported`, `function hinic3_comm_adev_release`, `function hinic3_del_one_adev`, `function hinic3_attach_aux_devices`, `function hinic3_detach_aux_devices`, `function hinic3_adev_event_register`, `function hinic3_adev_event_unregister`, `function hinic3_mapping_bar`, `function hinic3_unmapping_bar`, `function hinic3_pci_init`.
- 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.
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.