drivers/scsi/scsi_transport_spi.c
Source file repositories/reference/linux-study-clean/drivers/scsi/scsi_transport_spi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/scsi_transport_spi.c- Extension
.c- Size
- 45170 bytes
- Lines
- 1642
- 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/ctype.hlinux/init.hlinux/module.hlinux/workqueue.hlinux/blkdev.hlinux/mutex.hlinux/sysfs.hlinux/slab.hlinux/suspend.hscsi/scsi.hscsi_priv.hscsi/scsi_device.hscsi/scsi_host.hscsi/scsi_cmnd.hscsi/scsi_eh.hscsi/scsi_tcq.hscsi/scsi_transport.hscsi/scsi_transport_spi.h
Detected Declarations
struct spi_internalstruct work_queue_wrapperenum spi_compare_returnsfunction sprint_fracfunction spi_executefunction spi_signal_to_valuefunction spi_host_setupfunction spi_host_matchfunction spi_device_configurefunction spi_setup_transport_attrsfunction child_iterfunction store_spi_revalidatefunction period_to_strfunction show_spi_transport_period_helperfunction store_spi_transport_period_helperfunction show_spi_transport_periodfunction store_spi_transport_periodfunction show_spi_transport_min_periodfunction store_spi_transport_min_periodfunction show_spi_host_signallingfunction store_spi_host_signallingfunction show_spi_host_widthfunction show_spi_host_hba_idfunction spi_dv_device_echo_bufferfunction spi_dv_device_compare_inquiryfunction spi_dv_retrainfunction spi_dv_device_get_echo_bufferfunction spi_dv_device_internalfunction spi_signallingfunction spi_dv_devicefunction spi_dv_device_work_wrapperfunction spi_dv_devicefunction spi_display_xfer_agreementfunction spi_populate_width_msgfunction spi_populate_sync_msgfunction spi_populate_ppr_msgfunction spi_populate_tag_msgfunction print_negofunction print_ptrfunction spi_print_msgfunction spi_print_msgfunction spi_device_matchfunction spi_target_matchfunction spi_host_configurefunction target_attribute_is_visiblefunction spi_target_configurefunction spi_attach_transportfunction spi_release_transport
Annotated Snippet
module_init(spi_transport_init);
module_exit(spi_transport_exit);
Annotation
- Immediate include surface: `linux/ctype.h`, `linux/init.h`, `linux/module.h`, `linux/workqueue.h`, `linux/blkdev.h`, `linux/mutex.h`, `linux/sysfs.h`, `linux/slab.h`.
- Detected declarations: `struct spi_internal`, `struct work_queue_wrapper`, `enum spi_compare_returns`, `function sprint_frac`, `function spi_execute`, `function spi_signal_to_value`, `function spi_host_setup`, `function spi_host_match`, `function spi_device_configure`, `function spi_setup_transport_attrs`.
- 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.