drivers/vdpa/alibaba/eni_vdpa.c
Source file repositories/reference/linux-study-clean/drivers/vdpa/alibaba/eni_vdpa.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/vdpa/alibaba/eni_vdpa.c- Extension
.c- Size
- 14405 bytes
- Lines
- 561
- Domain
- Driver Families
- Bucket
- drivers/vdpa
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bits.hlinux/interrupt.hlinux/module.hlinux/pci.hlinux/vdpa.hlinux/virtio.hlinux/virtio_config.hlinux/virtio_ring.hlinux/virtio_pci.hlinux/virtio_pci_legacy.huapi/linux/virtio_net.h
Detected Declarations
struct eni_vringstruct eni_vdpafunction eni_vdpa_get_device_featuresfunction eni_vdpa_set_driver_featuresfunction eni_vdpa_get_driver_featuresfunction eni_vdpa_get_statusfunction eni_vdpa_get_vq_irqfunction eni_vdpa_free_irqfunction eni_vdpa_vq_handlerfunction eni_vdpa_config_handlerfunction eni_vdpa_request_irqfunction eni_vdpa_set_statusfunction eni_vdpa_resetfunction eni_vdpa_get_vq_num_maxfunction eni_vdpa_get_vq_num_minfunction eni_vdpa_get_vq_sizefunction eni_vdpa_get_vq_statefunction eni_vdpa_set_vq_statefunction eni_vdpa_set_vq_cbfunction eni_vdpa_set_vq_readyfunction eni_vdpa_get_vq_readyfunction eni_vdpa_set_vq_numfunction eni_vdpa_set_vq_addressfunction eni_vdpa_kick_vqfunction eni_vdpa_get_device_idfunction eni_vdpa_get_vendor_idfunction eni_vdpa_get_vq_alignfunction eni_vdpa_get_config_sizefunction eni_vdpa_get_configfunction eni_vdpa_set_configfunction eni_vdpa_set_config_cbfunction eni_vdpa_get_num_queuesfunction eni_vdpa_probefunction eni_vdpa_remove
Annotated Snippet
static struct pci_driver eni_vdpa_driver = {
.name = "alibaba-eni-vdpa",
.id_table = eni_pci_ids,
.probe = eni_vdpa_probe,
.remove = eni_vdpa_remove,
};
module_pci_driver(eni_vdpa_driver);
MODULE_AUTHOR("Wu Zongyong <wuzongyong@linux.alibaba.com>");
MODULE_DESCRIPTION("Alibaba ENI vDPA driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/bits.h`, `linux/interrupt.h`, `linux/module.h`, `linux/pci.h`, `linux/vdpa.h`, `linux/virtio.h`, `linux/virtio_config.h`, `linux/virtio_ring.h`.
- Detected declarations: `struct eni_vring`, `struct eni_vdpa`, `function eni_vdpa_get_device_features`, `function eni_vdpa_set_driver_features`, `function eni_vdpa_get_driver_features`, `function eni_vdpa_get_status`, `function eni_vdpa_get_vq_irq`, `function eni_vdpa_free_irq`, `function eni_vdpa_vq_handler`, `function eni_vdpa_config_handler`.
- Atlas domain: Driver Families / drivers/vdpa.
- Implementation status: pattern 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.