drivers/block/ps3vram.c
Source file repositories/reference/linux-study-clean/drivers/block/ps3vram.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/block/ps3vram.c- Extension
.c- Size
- 22060 bytes
- Lines
- 852
- Domain
- Driver Families
- Bucket
- drivers/block
- 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/blkdev.hlinux/delay.hlinux/module.hlinux/proc_fs.hlinux/seq_file.hlinux/slab.hasm/cell-regs.hasm/firmware.hasm/lv1call.hasm/ps3.hasm/ps3gpu.h
Detected Declarations
struct ps3vram_tagstruct ps3vram_cachestruct ps3vram_privfunction ps3vram_notifier_resetfunction ps3vram_notifier_waitfunction ps3vram_init_ringfunction ps3vram_wait_ringfunction ps3vram_out_ringfunction ps3vram_begin_ringfunction ps3vram_rewind_ringfunction ps3vram_fire_ringfunction ps3vram_bindfunction ps3vram_uploadfunction ps3vram_downloadfunction ps3vram_cache_evictfunction ps3vram_cache_loadfunction ps3vram_cache_flushfunction ps3vram_cache_matchfunction ps3vram_cache_initfunction ps3vram_cache_cleanupfunction ps3vram_readfunction ps3vram_writefunction ps3vram_proc_showfunction ps3vram_proc_initfunction bio_for_each_segmentfunction ps3vram_submit_biofunction ps3vram_probefunction ps3vram_removefunction ps3vram_initfunction ps3vram_exitmodule init ps3vram_init
Annotated Snippet
module_init(ps3vram_init);
module_exit(ps3vram_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("PS3 Video RAM Storage Driver");
MODULE_AUTHOR("Sony Corporation");
MODULE_ALIAS(PS3_MODULE_ALIAS_GPU_RAMDISK);
Annotation
- Immediate include surface: `linux/blkdev.h`, `linux/delay.h`, `linux/module.h`, `linux/proc_fs.h`, `linux/seq_file.h`, `linux/slab.h`, `asm/cell-regs.h`, `asm/firmware.h`.
- Detected declarations: `struct ps3vram_tag`, `struct ps3vram_cache`, `struct ps3vram_priv`, `function ps3vram_notifier_reset`, `function ps3vram_notifier_wait`, `function ps3vram_init_ring`, `function ps3vram_wait_ring`, `function ps3vram_out_ring`, `function ps3vram_begin_ring`, `function ps3vram_rewind_ring`.
- Atlas domain: Driver Families / drivers/block.
- 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.