drivers/gpu/drm/xen/xen_drm_front.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xen/xen_drm_front.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/xen/xen_drm_front.c- Extension
.c- Size
- 20200 bytes
- Lines
- 791
- Domain
- Driver Families
- Bucket
- drivers/gpu
- 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/delay.hlinux/dma-mapping.hlinux/module.hdrm/drm_atomic_helper.hdrm/drm_drv.hdrm/drm_ioctl.hdrm/drm_probe_helper.hdrm/drm_file.hdrm/drm_gem.hdrm/drm_print.hxen/platform_pci.hxen/xen.hxen/xenbus.hxen/xen-front-pgdir-shbuf.hxen/interface/io/displif.hxen_drm_front.hxen_drm_front_cfg.hxen_drm_front_evtchnl.hxen_drm_front_gem.hxen_drm_front_kms.h
Detected Declarations
struct xen_drm_front_dbuffunction dbuf_add_to_listfunction dbuf_freefunction list_for_each_entry_safefunction dbuf_free_allfunction list_for_each_entry_safefunction be_prepare_reqfunction be_stream_do_iofunction be_stream_wait_iofunction xen_drm_front_mode_setfunction xen_drm_front_dbuf_createfunction xen_drm_front_dbuf_destroyfunction xen_drm_front_fb_attachfunction xen_drm_front_fb_detachfunction xen_drm_front_page_flipfunction xen_drm_front_on_frame_donefunction xen_drm_front_gem_object_freefunction xen_drm_drv_dumb_createfunction xen_drm_drv_releasefunction xen_drm_drv_initfunction xen_drm_drv_finifunction displback_initwaitfunction displback_connectfunction displback_disconnectfunction displback_changedfunction xen_drv_probefunction xen_drv_removefunction xen_drv_initfunction xen_drv_finimodule init xen_drv_init
Annotated Snippet
module_init(xen_drv_init);
module_exit(xen_drv_fini);
MODULE_DESCRIPTION("Xen para-virtualized display device frontend");
MODULE_LICENSE("GPL");
MODULE_ALIAS("xen:" XENDISPL_DRIVER_NAME);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/dma-mapping.h`, `linux/module.h`, `drm/drm_atomic_helper.h`, `drm/drm_drv.h`, `drm/drm_ioctl.h`, `drm/drm_probe_helper.h`, `drm/drm_file.h`.
- Detected declarations: `struct xen_drm_front_dbuf`, `function dbuf_add_to_list`, `function dbuf_free`, `function list_for_each_entry_safe`, `function dbuf_free_all`, `function list_for_each_entry_safe`, `function be_prepare_req`, `function be_stream_do_io`, `function be_stream_wait_io`, `function xen_drm_front_mode_set`.
- Atlas domain: Driver Families / drivers/gpu.
- 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.