drivers/scsi/ibmvscsi/ibmvscsi.c
Source file repositories/reference/linux-study-clean/drivers/scsi/ibmvscsi/ibmvscsi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/ibmvscsi/ibmvscsi.c- Extension
.c- Size
- 71838 bytes
- Lines
- 2439
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/module.hlinux/moduleparam.hlinux/dma-mapping.hlinux/delay.hlinux/slab.hlinux/of.hlinux/pm.hlinux/kthread.hasm/firmware.hasm/vio.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_host.hscsi/scsi_device.hscsi/scsi_transport_srp.hibmvscsi.h
Detected Declarations
function ibmvscsi_handle_eventfunction ibmvscsi_release_crq_queuefunction ibmvscsi_send_crqfunction ibmvscsi_taskfunction gather_partition_infofunction set_adapter_infofunction ibmvscsi_reset_crq_queuefunction ibmvscsi_init_crq_queuefunction ibmvscsi_reenable_crq_queuefunction initialize_event_poolfunction release_event_poolfunction valid_event_structfunction free_event_structfunction get_event_structfunction init_event_structfunction set_srp_directionfunction unmap_cmd_datafunction map_sg_listfunction scsi_for_each_sgfunction map_data_for_srp_cmdfunction scsi_cmd_to_srp_cmdfunction purge_requestsfunction ibmvscsi_set_request_limitfunction ibmvscsi_reset_hostfunction ibmvscsi_timeoutfunction ibmvscsi_send_crqfunction requestsfunction list_for_each_entryfunction eventfunction ibmvscsi_handle_crqfunction lun_from_devfunction ibmvscsi_queuecommand_lckfunction DEF_SCSI_QCMDfunction unmap_persist_bufsfunction ibmvscsi_handle_crqfunction send_srp_loginfunction capabilities_rspfunction send_mad_capabilitiesfunction ibmvscsi_handle_crqfunction enable_fast_failfunction ibmvscsi_handle_crqfunction send_mad_adapter_infofunction init_adapterfunction sync_completionfunction ibmvscsi_eh_abort_handlerfunction list_for_each_entryfunction ibmvscsi_eh_device_reset_handlerfunction ibmvscsi_eh_host_reset_handler
Annotated Snippet
module_init(ibmvscsi_module_init);
module_exit(ibmvscsi_module_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/dma-mapping.h`, `linux/delay.h`, `linux/slab.h`, `linux/of.h`, `linux/pm.h`, `linux/kthread.h`.
- Detected declarations: `function ibmvscsi_handle_event`, `function ibmvscsi_release_crq_queue`, `function ibmvscsi_send_crq`, `function ibmvscsi_task`, `function gather_partition_info`, `function set_adapter_info`, `function ibmvscsi_reset_crq_queue`, `function ibmvscsi_init_crq_queue`, `function ibmvscsi_reenable_crq_queue`, `function initialize_event_pool`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.