drivers/video/fbdev/ps3fb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/ps3fb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/ps3fb.c- Extension
.c- Size
- 33491 bytes
- Lines
- 1302
- Domain
- Driver Families
- Bucket
- drivers/video
- 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 user memory; correctness depends on fault-safe copying and privilege boundary handling.
- 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/errno.hlinux/string.hlinux/mm.hlinux/interrupt.hlinux/console.hlinux/ioctl.hlinux/kthread.hlinux/freezer.hlinux/uaccess.hlinux/fb.hlinux/init.hasm/cell-regs.hasm/lv1call.hasm/ps3av.hasm/ps3fb.hasm/ps3.hasm/ps3gpu.h
Detected Declarations
struct display_headstruct gpu_irqstruct gpu_driver_infostruct ps3fb_privstruct ps3fb_parfunction ps3fb_cmp_modefunction ps3fb_find_modefunction ps3fb_sync_imagefunction ps3fb_syncfunction ps3fb_openfunction ps3fb_releasefunction ps3fb_check_varfunction ps3fb_set_parfunction ps3fb_setcolregfunction ps3fb_pan_displayfunction ps3fb_mmapfunction ps3fb_blankfunction ps3fb_get_vblankfunction ps3fb_wait_for_vsyncfunction ps3fb_ioctlfunction ps3fbdfunction ps3fb_vsync_interruptfunction ps3fb_probefunction ps3fb_shutdownfunction ps3fb_setupfunction ps3fb_initfunction ps3fb_exitmodule init ps3fb_init
Annotated Snippet
module_init(ps3fb_init);
module_exit(ps3fb_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("PS3 GPU Frame Buffer Driver");
MODULE_AUTHOR("Sony Computer Entertainment Inc.");
MODULE_ALIAS(PS3_MODULE_ALIAS_GPU_FB);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/mm.h`, `linux/interrupt.h`, `linux/console.h`, `linux/ioctl.h`.
- Detected declarations: `struct display_head`, `struct gpu_irq`, `struct gpu_driver_info`, `struct ps3fb_priv`, `struct ps3fb_par`, `function ps3fb_cmp_mode`, `function ps3fb_find_mode`, `function ps3fb_sync_image`, `function ps3fb_sync`, `function ps3fb_open`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- 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.