drivers/scsi/ibmvscsi/ibmvfc.c
Source file repositories/reference/linux-study-clean/drivers/scsi/ibmvscsi/ibmvfc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/ibmvscsi/ibmvfc.c- Extension
.c- Size
- 188466 bytes
- Lines
- 6608
- 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/dmapool.hlinux/delay.hlinux/interrupt.hlinux/irqdomain.hlinux/kthread.hlinux/slab.hlinux/of.hlinux/pm.hlinux/stringify.hlinux/bsg-lib.hasm/firmware.hasm/irq.hasm/vio.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_host.hscsi/scsi_device.hscsi/scsi_tcq.hscsi/scsi_transport_fc.hscsi/scsi_bsg_fc.hibmvfc.h
Detected Declarations
function h_reg_sub_crqfunction ibmvfc_check_capsfunction ibmvfc_trc_startfunction ibmvfc_trc_endfunction ibmvfc_get_err_indexfunction ibmvfc_get_err_resultfunction ibmvfc_retry_cmdfunction ibmvfc_set_tgt_actionfunction ibmvfc_set_host_statefunction ibmvfc_set_host_actionfunction ibmvfc_reinit_hostfunction ibmvfc_del_tgtfunction ibmvfc_link_downfunction ibmvfc_init_hostfunction list_for_each_entryfunction ibmvfc_send_crqfunction ibmvfc_send_sub_crqfunction ibmvfc_send_crq_initfunction ibmvfc_send_crq_init_completefunction ibmvfc_init_event_poolfunction ibmvfc_free_event_poolfunction ibmvfc_free_queuefunction ibmvfc_release_crq_queuefunction ibmvfc_reenable_crq_queuefunction ibmvfc_reset_crqfunction ibmvfc_valid_eventfunction ibmvfc_free_eventfunction ibmvfc_scsi_eh_donefunction ibmvfc_complete_purgefunction list_for_each_entry_safefunction ibmvfc_fail_requestfunction ibmvfc_purge_requestsfunction ibmvfc_hard_reset_hostfunction __ibmvfc_reset_hostfunction ibmvfc_reset_hostfunction ibmvfc_retry_host_initfunction list_for_each_entryfunction ibmvfc_get_host_speedfunction ibmvfc_get_host_port_statefunction ibmvfc_set_rport_dev_loss_tmofunction ibmvfc_release_tgtfunction ibmvfc_get_starget_node_namefunction ibmvfc_get_starget_port_namefunction ibmvfc_get_starget_port_idfunction ibmvfc_wait_while_resettingfunction ibmvfc_issue_fc_host_lipfunction ibmvfc_gather_partition_infofunction ibmvfc_set_login_info
Annotated Snippet
module_init(ibmvfc_module_init);
module_exit(ibmvfc_module_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/dma-mapping.h`, `linux/dmapool.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/irqdomain.h`, `linux/kthread.h`.
- Detected declarations: `function h_reg_sub_crq`, `function ibmvfc_check_caps`, `function ibmvfc_trc_start`, `function ibmvfc_trc_end`, `function ibmvfc_get_err_index`, `function ibmvfc_get_err_result`, `function ibmvfc_retry_cmd`, `function ibmvfc_set_tgt_action`, `function ibmvfc_set_host_state`, `function ibmvfc_set_host_action`.
- 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.