drivers/usb/usbip/vhci_hcd.c
Source file repositories/reference/linux-study-clean/drivers/usb/usbip/vhci_hcd.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/usbip/vhci_hcd.c- Extension
.c- Size
- 40564 bytes
- Lines
- 1588
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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/init.hlinux/file.hlinux/kernel.hlinux/kthread.hlinux/module.hlinux/platform_device.hlinux/slab.hlinux/string_choices.husbip_common.hvhci.h
Detected Declarations
function dump_port_status_difffunction rh_port_connectfunction rh_port_disconnectfunction vhci_hub_statusfunction ss_hub_descriptorfunction hub_descriptorfunction vhci_hub_controlfunction typesfunction vhci_tx_urbfunction vhci_urb_enqueuefunction vhci_urb_dequeuefunction vhci_cleanup_unlink_listfunction list_for_each_entry_safefunction vhci_device_unlink_cleanupfunction vhci_shutdown_connectionfunction vhci_device_resetfunction vhci_device_unusablefunction vhci_device_initfunction hcd_name_to_idfunction vhci_setupfunction vhci_startfunction vhci_stopfunction vhci_get_frame_numberfunction vhci_bus_suspendfunction vhci_bus_resumefunction vhci_alloc_streamsfunction vhci_free_streamsfunction vhci_hcd_probefunction vhci_hcd_removefunction vhci_hcd_suspendfunction vhci_hcd_resumefunction del_platform_devicesfunction vhci_hcd_initfunction vhci_hcd_exitmodule init vhci_hcd_init
Annotated Snippet
module_init(vhci_hcd_init);
module_exit(vhci_hcd_exit);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/file.h`, `linux/kernel.h`, `linux/kthread.h`, `linux/module.h`, `linux/platform_device.h`, `linux/slab.h`, `linux/string_choices.h`.
- Detected declarations: `function dump_port_status_diff`, `function rh_port_connect`, `function rh_port_disconnect`, `function vhci_hub_status`, `function ss_hub_descriptor`, `function hub_descriptor`, `function vhci_hub_control`, `function types`, `function vhci_tx_urb`, `function vhci_urb_enqueue`.
- Atlas domain: Driver Families / drivers/usb.
- 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.