drivers/hid/hid-hyperv.c
Source file repositories/reference/linux-study-clean/drivers/hid/hid-hyperv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hid/hid-hyperv.c- Extension
.c- Size
- 13735 bytes
- Lines
- 619
- Domain
- Driver Families
- Bucket
- drivers/hid
- 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.
- 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/init.hlinux/module.hlinux/device.hlinux/completion.hlinux/input.hlinux/hid.hlinux/hiddev.hlinux/hyperv.h
Detected Declarations
struct hv_input_dev_infostruct synthhid_msg_hdrstruct synthhid_protocol_requeststruct synthhid_protocol_responsestruct synthhid_device_infostruct synthhid_device_info_ackstruct synthhid_input_reportstruct pipe_prt_msgstruct mousevsc_prt_msgstruct mousevsc_devenum synthhid_msg_typeenum pipe_prot_msg_typefunction mousevsc_free_devicefunction mousevsc_on_receive_device_infofunction mousevsc_on_receivefunction mousevsc_on_channel_callbackfunction foreach_vmbus_pktfunction mousevsc_connect_to_vspfunction mousevsc_hid_parsefunction mousevsc_hid_openfunction mousevsc_hid_startfunction mousevsc_hid_closefunction mousevsc_hid_probefunction mousevsc_probefunction mousevsc_removefunction mousevsc_suspendfunction mousevsc_resumefunction mousevsc_initfunction mousevsc_exitmodule init mousevsc_init
Annotated Snippet
module_init(mousevsc_init);
module_exit(mousevsc_exit);
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/device.h`, `linux/completion.h`, `linux/input.h`, `linux/hid.h`, `linux/hiddev.h`, `linux/hyperv.h`.
- Detected declarations: `struct hv_input_dev_info`, `struct synthhid_msg_hdr`, `struct synthhid_protocol_request`, `struct synthhid_protocol_response`, `struct synthhid_device_info`, `struct synthhid_device_info_ack`, `struct synthhid_input_report`, `struct pipe_prt_msg`, `struct mousevsc_prt_msg`, `struct mousevsc_dev`.
- Atlas domain: Driver Families / drivers/hid.
- Implementation status: integration 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.