drivers/video/fbdev/omap/omapfb_main.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/omap/omapfb_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/omap/omapfb_main.c- Extension
.c- Size
- 46943 bytes
- Lines
- 1926
- 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.
- 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/export.hlinux/platform_device.hlinux/mm.hlinux/slab.hlinux/uaccess.hlinux/module.hlinux/sysfs.hlinux/omap-dma.hlinux/soc/ti/omap1-soc.homapfb.hlcdc.h
Detected Declarations
struct caps_table_structfunction omapdss_releasefunction omapfb_rqueue_lockfunction omapfb_rqueue_unlockfunction ctrl_initfunction ctrl_cleanupfunction ctrl_change_modefunction omapfb_openfunction omapfb_releasefunction _setcolregfunction omapfb_setcolregfunction omapfb_setcmapfunction omapfb_blankfunction omapfb_syncfunction set_fb_fixfunction set_color_modefunction set_fb_varfunction omapfb_pan_displayfunction omapfb_mirrorfunction omapfb_check_varfunction omapfb_set_parfunction omapfb_update_window_asyncfunction omapfb_update_winfunction omapfb_update_full_screenfunction omapfb_setup_planefunction omapfb_query_planefunction omapfb_setup_memfunction omapfb_query_memfunction omapfb_set_color_keyfunction omapfb_get_color_keyfunction omapfb_init_notifierfunction omapfb_register_clientfunction omapfb_unregister_clientfunction omapfb_notify_clientsfunction omapfb_set_update_modefunction omapfb_get_update_modefunction omapfb_get_capsfunction omapfb_write_first_pixelfunction omapfb_ioctlfunction omapfb_mmapfunction omapfb_show_caps_numfunction omapfb_show_caps_textfunction omapfb_show_panel_namefunction omapfb_show_bklight_levelfunction omapfb_store_bklight_levelfunction omapfb_show_bklight_maxfunction omapfb_show_ctrl_namefunction omapfb_register_sysfs
Annotated Snippet
module_init(omapfb_init);
module_exit(omapfb_cleanup);
MODULE_DESCRIPTION("TI OMAP framebuffer driver");
MODULE_AUTHOR("Imre Deak <imre.deak@nokia.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/export.h`, `linux/platform_device.h`, `linux/mm.h`, `linux/slab.h`, `linux/uaccess.h`, `linux/module.h`, `linux/sysfs.h`, `linux/omap-dma.h`.
- Detected declarations: `struct caps_table_struct`, `function omapdss_release`, `function omapfb_rqueue_lock`, `function omapfb_rqueue_unlock`, `function ctrl_init`, `function ctrl_cleanup`, `function ctrl_change_mode`, `function omapfb_open`, `function omapfb_release`, `function _setcolreg`.
- 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.