drivers/target/target_core_pscsi.c
Source file repositories/reference/linux-study-clean/drivers/target/target_core_pscsi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/target/target_core_pscsi.c- Extension
.c- Size
- 27292 bytes
- Lines
- 1073
- Domain
- Driver Families
- Bucket
- drivers/target
- 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/string.hlinux/parser.hlinux/timer.hlinux/blkdev.hlinux/blk_types.hlinux/slab.hlinux/spinlock.hlinux/cdrom.hlinux/ratelimit.hlinux/module.hlinux/unaligned.hscsi/scsi_device.hscsi/scsi_host.hscsi/scsi_tcq.htarget/target_core_base.htarget/target_core_backend.htarget_core_alua.htarget_core_internal.htarget_core_pscsi.h
Detected Declarations
function pscsi_get_shfunction pscsi_detach_hbafunction pscsi_pmode_enable_hbafunction pscsi_tape_read_blocksizefunction pscsi_set_inquiry_infofunction pscsi_get_inquiry_vpd_serialfunction pscsi_get_inquiry_vpd_device_identfunction pscsi_add_device_to_listfunction pscsi_create_type_diskfunction pscsi_create_type_nondiskfunction pscsi_configure_devicefunction pscsi_add_device_to_listfunction pscsi_dev_call_rcufunction pscsi_free_devicefunction pscsi_destroy_devicefunction pscsi_complete_cmdfunction TRANSPORTfunction pscsi_set_configfs_dev_paramsfunction pscsi_show_configfs_dev_paramsfunction pscsi_bi_endiofunction pscsi_map_sgfunction for_each_sgfunction pscsi_parse_cdbfunction pscsi_execute_cmdfunction pscsi_get_device_typefunction pscsi_get_blocksfunction pscsi_req_donefunction pscsi_module_initfunction pscsi_module_exitmodule init pscsi_module_init
Annotated Snippet
module_init(pscsi_module_init);
module_exit(pscsi_module_exit);
Annotation
- Immediate include surface: `linux/string.h`, `linux/parser.h`, `linux/timer.h`, `linux/blkdev.h`, `linux/blk_types.h`, `linux/slab.h`, `linux/spinlock.h`, `linux/cdrom.h`.
- Detected declarations: `function pscsi_get_sh`, `function pscsi_detach_hba`, `function pscsi_pmode_enable_hba`, `function pscsi_tape_read_blocksize`, `function pscsi_set_inquiry_info`, `function pscsi_get_inquiry_vpd_serial`, `function pscsi_get_inquiry_vpd_device_ident`, `function pscsi_add_device_to_list`, `function pscsi_create_type_disk`, `function pscsi_create_type_nondisk`.
- Atlas domain: Driver Families / drivers/target.
- 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.