drivers/video/fbdev/offb.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/offb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/offb.c- Extension
.c- Size
- 20710 bytes
- Lines
- 727
- 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.
- 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/aperture.hlinux/module.hlinux/kernel.hlinux/errno.hlinux/string.hlinux/mm.hlinux/vmalloc.hlinux/delay.hlinux/of.hlinux/of_address.hlinux/interrupt.hlinux/fb.hlinux/init.hlinux/ioport.hlinux/pci.hlinux/platform_device.hasm/io.hasm/bootx.hmacmodes.h
Detected Declarations
struct offb_parfunction offb_setcolregfunction offb_blankfunction offb_set_parfunction offb_destroyfunction offb_init_palette_hacksfunction of_node_name_prefixfunction of_device_is_compatiblefunction offb_init_fbfunction offb_init_nodriverfunction offb_removefunction offb_probe_bootx_noscreenfunction offb_probe_displayfunction offb_initfunction offb_exitmodule init offb_init
Annotated Snippet
module_init(offb_init);
static void __exit offb_exit(void)
{
platform_driver_unregister(&offb_driver_display);
platform_driver_unregister(&offb_driver_bootx_noscreen);
}
module_exit(offb_exit);
MODULE_DESCRIPTION("Open Firmware frame buffer device driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/aperture.h`, `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/mm.h`, `linux/vmalloc.h`, `linux/delay.h`.
- Detected declarations: `struct offb_par`, `function offb_setcolreg`, `function offb_blank`, `function offb_set_par`, `function offb_destroy`, `function offb_init_palette_hacks`, `function of_node_name_prefix`, `function of_device_is_compatible`, `function offb_init_fb`, `function offb_init_nodriver`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: integration implementation candidate.
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.