drivers/video/fbdev/leo.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/leo.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/leo.c- Extension
.c- Size
- 15610 bytes
- Lines
- 683
- 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.
- 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/delay.hlinux/init.hlinux/fb.hlinux/mm.hlinux/io.hlinux/of.hlinux/platform_device.hasm/fbio.hsbuslib.h
Detected Declarations
struct leo_cursorstruct leo_lx_krnstruct leo_lc_ss0_krnstruct leo_lc_ss0_usrstruct leo_lc_ss1_krnstruct leo_lc_ss1_usrstruct leo_ld_ss0struct leo_ld_ss1struct leo_ld_gblstruct leo_parfunction leo_waitfunction leo_switch_from_graphfunction leo_pan_displayfunction leo_setcolregfunction leo_blankfunction leo_sbusfb_mmapfunction leo_sbusfb_ioctlfunction leo_init_fixfunction leo_wid_putfunction leo_init_widsfunction leo_init_hwfunction leo_fixup_var_rgbfunction leo_unmap_regsfunction leo_probefunction leo_removefunction leo_initfunction leo_exitmodule init leo_init
Annotated Snippet
module_init(leo_init);
module_exit(leo_exit);
MODULE_DESCRIPTION("framebuffer driver for LEO chipsets");
MODULE_AUTHOR("David S. Miller <davem@davemloft.net>");
MODULE_VERSION("2.0");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/errno.h`, `linux/string.h`, `linux/delay.h`, `linux/init.h`, `linux/fb.h`, `linux/mm.h`.
- Detected declarations: `struct leo_cursor`, `struct leo_lx_krn`, `struct leo_lc_ss0_krn`, `struct leo_lc_ss0_usr`, `struct leo_lc_ss1_krn`, `struct leo_lc_ss1_usr`, `struct leo_ld_ss0`, `struct leo_ld_ss1`, `struct leo_ld_gbl`, `struct leo_par`.
- 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.
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.