drivers/vfio/pci/virtio/main.c
Source file repositories/reference/linux-study-clean/drivers/vfio/pci/virtio/main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/vfio/pci/virtio/main.c- Extension
.c- Size
- 7024 bytes
- Lines
- 232
- Domain
- Driver Families
- Bucket
- drivers/vfio
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/module.hlinux/mutex.hlinux/pci.hlinux/pm_runtime.hlinux/types.hlinux/uaccess.hlinux/vfio.hlinux/vfio_pci_core.hlinux/virtio_pci.hlinux/virtio_net.hlinux/virtio_pci_admin.hcommon.h
Detected Declarations
function Copyrightfunction virtiovf_pci_close_devicefunction virtiovf_pci_init_devicefunction virtiovf_pci_core_release_devfunction virtiovf_pci_probefunction virtiovf_pci_removefunction virtiovf_pci_aer_reset_done
Annotated Snippet
static struct pci_driver virtiovf_pci_driver = {
.name = KBUILD_MODNAME,
.id_table = virtiovf_pci_table,
.probe = virtiovf_pci_probe,
.remove = virtiovf_pci_remove,
.err_handler = &virtiovf_err_handlers,
.driver_managed_dma = true,
};
module_pci_driver(virtiovf_pci_driver);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Yishai Hadas <yishaih@nvidia.com>");
MODULE_DESCRIPTION(
"VIRTIO VFIO PCI - User Level meta-driver for VIRTIO NET and BLOCK devices");
Annotation
- Immediate include surface: `linux/device.h`, `linux/module.h`, `linux/mutex.h`, `linux/pci.h`, `linux/pm_runtime.h`, `linux/types.h`, `linux/uaccess.h`, `linux/vfio.h`.
- Detected declarations: `function Copyright`, `function virtiovf_pci_close_device`, `function virtiovf_pci_init_device`, `function virtiovf_pci_core_release_dev`, `function virtiovf_pci_probe`, `function virtiovf_pci_remove`, `function virtiovf_pci_aer_reset_done`.
- Atlas domain: Driver Families / drivers/vfio.
- Implementation status: pattern implementation candidate.
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.