drivers/scsi/mesh.c
Source file repositories/reference/linux-study-clean/drivers/scsi/mesh.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/mesh.c- Extension
.c- Size
- 53870 bytes
- Lines
- 2072
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/kernel.hlinux/delay.hlinux/types.hlinux/string.hlinux/blkdev.hlinux/proc_fs.hlinux/stat.hlinux/interrupt.hlinux/reboot.hlinux/spinlock.hlinux/pci.hlinux/pgtable.hasm/dbdma.hasm/io.hasm/prom.hasm/irq.hasm/hydra.hasm/processor.hasm/setup.hasm/pmac_feature.hasm/macio.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_device.hscsi/scsi_host.hmesh.h
Detected Declarations
struct dbglogstruct mesh_targetstruct mesh_stateenum mesh_phaseenum msg_phaseenum sdtr_phasefunction readtbfunction dlogfunction dumplogfunction dumpslogfunction dlogfunction mesh_flush_iofunction mesh_initfunction mesh_start_cmdfunction mesh_startfunction mesh_donefunction add_sdtr_msgfunction set_sdtrfunction start_phasefunction get_msginfunction msgin_lengthfunction reselectedfunction do_abortfunction handle_resetfunction do_mesh_interruptfunction handle_errorfunction handle_exceptionfunction handle_msginfunction set_dma_cmdsfunction scsi_for_each_sgfunction halt_dmafunction phase_mismatchfunction cmd_completefunction mesh_queue_lckfunction DEF_SCSI_QCMDfunction mesh_abortfunction mesh_host_resetfunction set_mesh_powerfunction mesh_suspendfunction mesh_resumefunction transfersfunction mesh_probefunction mesh_removefunction init_meshfunction exit_meshmodule init init_mesh
Annotated Snippet
module_init(init_mesh);
module_exit(exit_mesh);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/delay.h`, `linux/types.h`, `linux/string.h`, `linux/blkdev.h`, `linux/proc_fs.h`, `linux/stat.h`.
- Detected declarations: `struct dbglog`, `struct mesh_target`, `struct mesh_state`, `enum mesh_phase`, `enum msg_phase`, `enum sdtr_phase`, `function readtb`, `function dlog`, `function dumplog`, `function dumpslog`.
- 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.