drivers/scsi/ps3rom.c
Source file repositories/reference/linux-study-clean/drivers/scsi/ps3rom.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/ps3rom.c- Extension
.c- Size
- 10638 bytes
- Lines
- 439
- 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.
- 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/cdrom.hlinux/highmem.hlinux/module.hlinux/slab.hscsi/scsi.hscsi/scsi_cmnd.hscsi/scsi_dbg.hscsi/scsi_device.hscsi/scsi_host.hscsi/scsi_eh.hasm/lv1call.hasm/ps3stor.h
Detected Declarations
struct ps3rom_privatestruct lv1_atapi_cmnd_blockenum lv1_atapi_protoenum lv1_atapi_in_outfunction ps3rom_sdev_configurefunction ps3rom_atapi_requestfunction srb10_lbafunction srb10_lenfunction ps3rom_read_requestfunction ps3rom_write_requestfunction ps3rom_queuecommand_lckfunction DEF_SCSI_QCMDfunction ps3rom_interruptfunction ps3rom_probefunction ps3rom_removefunction ps3rom_initfunction ps3rom_exitmodule init ps3rom_init
Annotated Snippet
module_init(ps3rom_init);
module_exit(ps3rom_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("PS3 BD/DVD/CD-ROM Storage Driver");
MODULE_AUTHOR("Sony Corporation");
MODULE_ALIAS(PS3_MODULE_ALIAS_STOR_ROM);
Annotation
- Immediate include surface: `linux/cdrom.h`, `linux/highmem.h`, `linux/module.h`, `linux/slab.h`, `scsi/scsi.h`, `scsi/scsi_cmnd.h`, `scsi/scsi_dbg.h`, `scsi/scsi_device.h`.
- Detected declarations: `struct ps3rom_private`, `struct lv1_atapi_cmnd_block`, `enum lv1_atapi_proto`, `enum lv1_atapi_in_out`, `function ps3rom_sdev_configure`, `function ps3rom_atapi_request`, `function srb10_lba`, `function srb10_len`, `function ps3rom_read_request`, `function ps3rom_write_request`.
- Atlas domain: Driver Families / drivers/scsi.
- Implementation status: integration implementation candidate.
- 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.