drivers/scsi/libsas/sas_init.c
Source file repositories/reference/linux-study-clean/drivers/scsi/libsas/sas_init.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/libsas/sas_init.c- Extension
.c- Size
- 17602 bytes
- Lines
- 713
- 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/module.hlinux/slab.hlinux/init.hlinux/device.hlinux/spinlock.hscsi/sas_ata.hscsi/scsi_host.hscsi/scsi_device.hscsi/scsi_transport.hscsi/scsi_transport_sas.hsas_internal.hscsi_sas_internal.h
Detected Declarations
function sas_free_taskfunction sas_hash_addrfunction sas_register_hafunction sas_disable_eventsfunction sas_unregister_hafunction sas_get_linkerrorsfunction sas_try_ata_resetfunction transport_sas_phy_resetfunction sas_phy_enablefunction sas_phy_resetfunction sas_set_phy_speedfunction sas_prep_resume_hafunction phys_suspendedfunction sas_resume_insert_broadcast_hafunction _sas_resume_hafunction sas_resume_hafunction sas_resume_ha_no_syncfunction sas_suspend_hafunction sas_phy_releasefunction phy_reset_workfunction phy_enable_workfunction sas_phy_setupfunction queue_phy_resetfunction queue_phy_enablefunction phy_event_threshold_showfunction phy_event_threshold_storefunction sas_domain_attach_transportfunction sas_free_eventfunction sas_class_initfunction sas_class_exitmodule init sas_class_initexport sas_register_haexport sas_unregister_haexport sas_phy_enableexport sas_phy_resetexport sas_prep_resume_haexport sas_resume_haexport sas_resume_ha_no_syncexport sas_suspend_haexport dev_attr_phy_event_thresholdexport sas_domain_attach_transport
Annotated Snippet
module_init(sas_class_init);
module_exit(sas_class_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/init.h`, `linux/device.h`, `linux/spinlock.h`, `scsi/sas_ata.h`, `scsi/scsi_host.h`, `scsi/scsi_device.h`.
- Detected declarations: `function sas_free_task`, `function sas_hash_addr`, `function sas_register_ha`, `function sas_disable_events`, `function sas_unregister_ha`, `function sas_get_linkerrors`, `function sas_try_ata_reset`, `function transport_sas_phy_reset`, `function sas_phy_enable`, `function sas_phy_reset`.
- 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.