drivers/net/ethernet/hisilicon/hns/hnae.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/hisilicon/hns/hnae.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/hisilicon/hns/hnae.c- Extension
.c- Size
- 10244 bytes
- Lines
- 468
- 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/dma-mapping.hlinux/interrupt.hlinux/of.hlinux/skbuff.hlinux/slab.hhnae.h
Detected Declarations
function hnae_list_addfunction hnae_list_delfunction hnae_alloc_bufferfunction hnae_free_bufferfunction hnae_map_bufferfunction hnae_unmap_bufferfunction __ae_matchfunction hnae_free_buffersfunction hnae_alloc_buffersfunction hnae_free_descfunction hnae_alloc_descfunction hnae_fini_ringfunction hnae_init_ringfunction hnae_init_queuefunction hnae_fini_queuefunction hnae_register_notifierfunction hnae_unregister_notifierfunction hnae_reinit_handlefunction hnae_put_handlefunction hnae_releasefunction hnae_ae_unregisterfunction hnae_initfunction hnae_exitmodule init hnae_initexport hnae_register_notifierexport hnae_unregister_notifierexport hnae_reinit_handleexport hnae_get_handleexport hnae_put_handleexport hnae_ae_registerexport hnae_ae_unregister
Annotated Snippet
subsys_initcall(hnae_init);
module_exit(hnae_exit);
MODULE_AUTHOR("Hisilicon, Inc.");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Hisilicon Network Acceleration Engine Framework");
/* vi: set tw=78 noet: */
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/interrupt.h`, `linux/of.h`, `linux/skbuff.h`, `linux/slab.h`, `hnae.h`.
- Detected declarations: `function hnae_list_add`, `function hnae_list_del`, `function hnae_alloc_buffer`, `function hnae_free_buffer`, `function hnae_map_buffer`, `function hnae_unmap_buffer`, `function __ae_match`, `function hnae_free_buffers`, `function hnae_alloc_buffers`, `function hnae_free_desc`.
- 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.