drivers/scsi/storvsc_drv.c
Source file repositories/reference/linux-study-clean/drivers/scsi/storvsc_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/storvsc_drv.c- Extension
.c- Size
- 61115 bytes
- Lines
- 2259
- Domain
- Driver Families
- Bucket
- drivers/scsi
- 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/kernel.hlinux/wait.hlinux/sched.hlinux/completion.hlinux/string.hlinux/mm.hlinux/delay.hlinux/init.hlinux/slab.hlinux/module.hlinux/device.hlinux/hyperv.hlinux/blkdev.hlinux/dma-mapping.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_host.hscsi/scsi_device.hscsi/scsi_tcq.hscsi/scsi_eh.hscsi/scsi_devinfo.hscsi/scsi_dbg.hscsi/scsi_transport_fc.hscsi/scsi_transport.h
Detected Declarations
struct hv_fc_wwn_packetstruct vmscsi_requeststruct vmstorage_channel_propertiesstruct vmstorage_protocol_versionstruct vstor_packetstruct storvsc_cmd_requeststruct storvsc_devicestruct hv_host_devicestruct storvsc_scan_workenum vstor_packet_operationenum storvsc_request_typefunction do_loggingfunction storvsc_device_scanfunction storvsc_host_scanfunction storvsc_remove_lunfunction storvsc_wait_to_drainfunction storvsc_change_target_cpufunction storvsc_next_request_idfunction handle_sc_creationfunction handle_multichannel_storagefunction cache_wwnfunction storvsc_execute_vstor_opfunction storvsc_channel_initfunction storvsc_handle_errorfunction scsi_report_sensefunction storvsc_command_completionfunction andfunction storvsc_on_io_completionfunction storvsc_on_receivefunction storvsc_on_channel_callbackfunction foreach_vmbus_pktfunction storvsc_connect_to_vspfunction storvsc_dev_removefunction for_each_cpufunction storvsc_do_iofunction for_each_cpu_wrapfunction for_each_cpu_wrapfunction storvsc_device_allocfunction storvsc_sdev_configurefunction storvsc_get_chsfunction storvsc_host_reset_handlerfunction storvsc_eh_timed_outfunction storvsc_scsi_cmd_okfunction storvsc_queuecommandfunction for_each_sgfunction hv_dev_is_fcfunction storvsc_probefunction storvsc_change_queue_depth
Annotated Snippet
module_init(storvsc_drv_init);
module_exit(storvsc_drv_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/wait.h`, `linux/sched.h`, `linux/completion.h`, `linux/string.h`, `linux/mm.h`, `linux/delay.h`, `linux/init.h`.
- Detected declarations: `struct hv_fc_wwn_packet`, `struct vmscsi_request`, `struct vmstorage_channel_properties`, `struct vmstorage_protocol_version`, `struct vstor_packet`, `struct storvsc_cmd_request`, `struct storvsc_device`, `struct hv_host_device`, `struct storvsc_scan_work`, `enum vstor_packet_operation`.
- Atlas domain: Driver Families / drivers/scsi.
- 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.