drivers/scsi/device_handler/scsi_dh_alua.c
Source file repositories/reference/linux-study-clean/drivers/scsi/device_handler/scsi_dh_alua.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/device_handler/scsi_dh_alua.c- Extension
.c- Size
- 34644 bytes
- Lines
- 1329
- 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/slab.hlinux/delay.hlinux/module.hlinux/unaligned.hscsi/scsi.hscsi/scsi_proto.hscsi/scsi_dbg.hscsi/scsi_eh.hscsi/scsi_dh.h
Detected Declarations
struct alua_port_groupstruct alua_dh_datastruct alua_queue_datafunction release_port_groupfunction submit_rtpgfunction submit_stpgfunction list_for_each_entryfunction alua_check_tpgsfunction alua_check_vpdfunction print_alua_statefunction alua_handle_state_transitionfunction alua_check_sensefunction alua_turfunction alua_rtpgfunction submit_rtpgfunction list_for_each_entry_rcufunction list_for_each_entry_rcufunction alua_stpgfunction scsi_device_putfunction alua_rtpg_workfunction list_for_each_entry_safefunction alua_rtpg_queuefunction alua_initializefunction alua_set_paramsfunction alua_activatefunction alua_checkfunction alua_prep_fnfunction alua_rescanfunction alua_bus_attachfunction alua_bus_detachfunction alua_initfunction alua_exitmodule init alua_init
Annotated Snippet
module_init(alua_init);
module_exit(alua_exit);
MODULE_DESCRIPTION("DM Multipath ALUA support");
MODULE_AUTHOR("Hannes Reinecke <hare@suse.de>");
MODULE_LICENSE("GPL");
MODULE_VERSION(ALUA_DH_VER);
Annotation
- Immediate include surface: `linux/slab.h`, `linux/delay.h`, `linux/module.h`, `linux/unaligned.h`, `scsi/scsi.h`, `scsi/scsi_proto.h`, `scsi/scsi_dbg.h`, `scsi/scsi_eh.h`.
- Detected declarations: `struct alua_port_group`, `struct alua_dh_data`, `struct alua_queue_data`, `function release_port_group`, `function submit_rtpg`, `function submit_stpg`, `function list_for_each_entry`, `function alua_check_tpgs`, `function alua_check_vpd`, `function print_alua_state`.
- 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.