drivers/scsi/qla2xxx/tcm_qla2xxx.c
Source file repositories/reference/linux-study-clean/drivers/scsi/qla2xxx/tcm_qla2xxx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/qla2xxx/tcm_qla2xxx.c- Extension
.c- Size
- 54314 bytes
- Lines
- 1965
- 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/utsname.hlinux/vmalloc.hlinux/hex.hlinux/list.hlinux/slab.hlinux/types.hlinux/string.hlinux/configfs.hlinux/ctype.hlinux/unaligned.hscsi/scsi_host.htarget/target_core_base.htarget/target_core_fabric.hqla_def.hqla_target.htcm_qla2xxx.h
Detected Declarations
function ft_format_wwnfunction tcm_qla2xxx_format_wwnfunction tcm_qla2xxx_npiv_extract_wwnfunction store_fc_host_vport_createfunction tcm_qla2xxx_get_tagfunction tcm_qla2xxx_check_demo_modefunction tcm_qla2xxx_check_demo_mode_cachefunction tcm_qla2xxx_check_demo_write_protectfunction tcm_qla2xxx_check_prod_write_protectfunction tcm_qla2xxx_check_demo_mode_login_onlyfunction tcm_qla2xxx_check_prot_fabric_onlyfunction tcm_qla2xxx_tpg_get_inst_indexfunction tcm_qla2xxx_complete_mcmdfunction tcm_qla2xxx_release_cmdfunction tcm_qla2xxx_complete_freefunction tcm_qla2xxx_get_cmd_reffunction tcm_qla2xxx_put_cmd_reffunction tcm_qla2xxx_rel_cmdfunction tcm_qla2xxx_free_cmdfunction tcm_qla2xxx_check_stop_freefunction tcm_qla2xxx_release_cmdfunction tcm_qla2xxx_release_sessionfunction tcm_qla2xxx_put_sessfunction tcm_qla2xxx_close_sessionfunction tcm_qla2xxx_write_pendingfunction tcm_qla2xxx_get_cmd_statefunction tcm_qla2xxx_handle_cmdfunction tcm_qla2xxx_handle_data_workfunction tcm_qla2xxx_handle_datafunction tcm_qla2xxx_chk_dif_tagsfunction tcm_qla2xxx_dif_tagsfunction tcm_qla2xxx_handle_tmrfunction tcm_qla2xxx_queue_data_infunction tcm_qla2xxx_queue_statusfunction tcm_qla2xxx_queue_tm_rspfunction tcm_qla2xxx_aborted_taskfunction tcm_qla2xxx_clear_nacl_from_fcport_mapfunction tcm_qla2xxx_shutdown_sessfunction tcm_qla2xxx_init_nodeaclfunction tcm_qla2xxx_enable_tpgfunction tcm_qla2xxx_tpg_dynamic_sessions_showfunction tcm_qla2xxx_tpg_fabric_prot_type_storefunction tcm_qla2xxx_tpg_fabric_prot_type_showfunction tcm_qla2xxx_drop_tpgfunction tcm_qla2xxx_npiv_enable_tpgfunction tcm_qla2xxx_set_sess_by_s_idfunction tcm_qla2xxx_set_sess_by_loop_idfunction tcm_qla2xxx_clear_sess_lookup
Annotated Snippet
module_init(tcm_qla2xxx_init);
module_exit(tcm_qla2xxx_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/utsname.h`, `linux/vmalloc.h`, `linux/hex.h`, `linux/list.h`, `linux/slab.h`, `linux/types.h`, `linux/string.h`.
- Detected declarations: `function ft_format_wwn`, `function tcm_qla2xxx_format_wwn`, `function tcm_qla2xxx_npiv_extract_wwn`, `function store_fc_host_vport_create`, `function tcm_qla2xxx_get_tag`, `function tcm_qla2xxx_check_demo_mode`, `function tcm_qla2xxx_check_demo_mode_cache`, `function tcm_qla2xxx_check_demo_write_protect`, `function tcm_qla2xxx_check_prod_write_protect`, `function tcm_qla2xxx_check_demo_mode_login_only`.
- 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.