drivers/scsi/isci/init.c
Source file repositories/reference/linux-study-clean/drivers/scsi/isci/init.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/isci/init.c- Extension
.c- Size
- 21616 bytes
- Lines
- 762
- 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/kernel.hlinux/init.hlinux/module.hlinux/firmware.hlinux/efi.hasm/string.hscsi/scsi_host.hhost.hisci.htask.hprobe_roms.h
Detected Declarations
function isci_show_idfunction isci_register_sas_hafunction isci_unregisterfunction isci_pci_initfunction num_controllersfunction isci_setup_interruptsfunction isci_user_parameters_getfunction sci_user_parameters_setfunction sci_oem_defaultsfunction isci_pci_probefunction isci_pci_removefunction for_each_isci_hostfunction isci_suspendfunction for_each_isci_hostfunction isci_resumefunction for_each_isci_hostfunction isci_initfunction isci_exitmodule init isci_init
Annotated Snippet
static struct pci_driver isci_pci_driver = {
.name = DRV_NAME,
.id_table = isci_id_table,
.probe = isci_pci_probe,
.remove = isci_pci_remove,
.driver.pm = &isci_pm_ops,
};
static __init int isci_init(void)
{
int err;
pr_info("%s: Intel(R) C600 SAS Controller Driver - version %s\n",
DRV_NAME, DRV_VERSION);
isci_transport_template = sas_domain_attach_transport(&isci_transport_ops);
if (!isci_transport_template)
return -ENOMEM;
err = pci_register_driver(&isci_pci_driver);
if (err)
sas_release_transport(isci_transport_template);
return err;
}
static __exit void isci_exit(void)
{
pci_unregister_driver(&isci_pci_driver);
sas_release_transport(isci_transport_template);
}
MODULE_DESCRIPTION("Intel(R) C600 Series Chipset SAS Controller driver");
MODULE_LICENSE("Dual BSD/GPL");
MODULE_FIRMWARE(ISCI_FW_NAME);
module_init(isci_init);
module_exit(isci_exit);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/firmware.h`, `linux/efi.h`, `asm/string.h`, `scsi/scsi_host.h`, `host.h`.
- Detected declarations: `function isci_show_id`, `function isci_register_sas_ha`, `function isci_unregister`, `function isci_pci_init`, `function num_controllers`, `function isci_setup_interrupts`, `function isci_user_parameters_get`, `function sci_user_parameters_set`, `function sci_oem_defaults`, `function isci_pci_probe`.
- 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.