drivers/uio/uio_hv_generic.c
Source file repositories/reference/linux-study-clean/drivers/uio/uio_hv_generic.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/uio/uio_hv_generic.c- Extension
.c- Size
- 11720 bytes
- Lines
- 425
- Domain
- Driver Families
- Bucket
- drivers/uio
- 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.
- 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/device.hlinux/kernel.hlinux/module.hlinux/uio_driver.hlinux/netdevice.hlinux/if_ether.hlinux/skbuff.hlinux/hyperv.hlinux/vmalloc.hlinux/slab.h../hv/hyperv_vmbus.h
Detected Declarations
struct hv_uio_private_dataenum hv_uio_mapfunction set_eventfunction hv_uio_irqcontrolfunction hv_uio_channel_cbfunction hv_uio_rescindfunction hv_uio_ring_mmap_preparefunction hv_uio_new_channelfunction hv_uio_cleanupfunction hv_uio_openfunction hv_uio_releasefunction hv_uio_probefunction hv_uio_removefunction hyperv_module_initfunction hyperv_module_exitmodule init hyperv_module_init
Annotated Snippet
module_init(hyperv_module_init);
module_exit(hyperv_module_exit);
MODULE_VERSION(DRIVER_VERSION);
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
Annotation
- Immediate include surface: `linux/device.h`, `linux/kernel.h`, `linux/module.h`, `linux/uio_driver.h`, `linux/netdevice.h`, `linux/if_ether.h`, `linux/skbuff.h`, `linux/hyperv.h`.
- Detected declarations: `struct hv_uio_private_data`, `enum hv_uio_map`, `function set_event`, `function hv_uio_irqcontrol`, `function hv_uio_channel_cb`, `function hv_uio_rescind`, `function hv_uio_ring_mmap_prepare`, `function hv_uio_new_channel`, `function hv_uio_cleanup`, `function hv_uio_open`.
- Atlas domain: Driver Families / drivers/uio.
- Implementation status: integration 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.