drivers/scsi/initio.c
Source file repositories/reference/linux-study-clean/drivers/scsi/initio.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/initio.c- Extension
.c- Size
- 81606 bytes
- Lines
- 2965
- Domain
- Driver Families
- Bucket
- drivers/scsi
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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/errno.hlinux/delay.hlinux/pci.hlinux/init.hlinux/blkdev.hlinux/spinlock.hlinux/stat.hlinux/kernel.hlinux/proc_fs.hlinux/string.hlinux/interrupt.hlinux/ioport.hlinux/slab.hlinux/jiffies.hlinux/dma-mapping.hasm/io.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_device.hscsi/scsi_host.hscsi/scsi_tcq.hinitio.h
Detected Declarations
function initio_do_pausefunction initio_se2_instrfunction initio_se2_ew_enfunction initio_se2_ew_dsfunction initio_se2_rdfunction initio_se2_wrfunction initio_se2_rd_allfunction initio_se2_update_allfunction initio_read_eepromfunction initio_stop_bmfunction initio_reset_scsifunction initio_initfunction initio_release_scbfunction initio_append_pend_scbfunction initio_push_pend_scbfunction initio_unlink_pend_scbfunction initio_append_busy_scbfunction initio_unlink_busy_scbfunction initio_append_done_scbfunction initio_abort_srbfunction initio_bad_seqfunction initio_exec_scbfunction initio_isrfunction tulip_mainfunction tulip_scsifunction initio_next_statefunction initio_state_1function initio_state_2function initio_state_3function initio_state_4function initio_state_5function initio_state_6function initio_state_7function completionfunction completionfunction initio_xpad_infunction initio_xpad_outfunction initio_status_msgfunction int_initio_busfreefunction int_initio_scsi_rstfunction int_initio_reselfunction int_initio_bad_seqfunction initio_msgout_abort_targfunction initio_msgout_abort_tagfunction initio_msginfunction initio_msgout_rejectfunction initio_msgout_idefunction initio_msgin_extend
Annotated Snippet
static struct pci_driver initio_pci_driver = {
.name = "initio",
.id_table = initio_pci_tbl,
.probe = initio_probe_one,
.remove = initio_remove_one,
};
module_pci_driver(initio_pci_driver);
MODULE_DESCRIPTION("Initio INI-9X00U/UW SCSI device driver");
MODULE_AUTHOR("Initio Corporation");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/errno.h`, `linux/delay.h`, `linux/pci.h`, `linux/init.h`, `linux/blkdev.h`, `linux/spinlock.h`, `linux/stat.h`.
- Detected declarations: `function initio_do_pause`, `function initio_se2_instr`, `function initio_se2_ew_en`, `function initio_se2_ew_ds`, `function initio_se2_rd`, `function initio_se2_wr`, `function initio_se2_rd_all`, `function initio_se2_update_all`, `function initio_read_eeprom`, `function initio_stop_bm`.
- Atlas domain: Driver Families / drivers/scsi.
- Implementation status: pattern 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.