drivers/gpu/drm/vkms/vkms_drv.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/vkms/vkms_drv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/vkms/vkms_drv.c- Extension
.c- Size
- 7277 bytes
- Lines
- 288
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/device/faux.hlinux/dma-mapping.hdrm/clients/drm_client_setup.hdrm/drm_gem.hdrm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_colorop.hdrm/drm_drv.hdrm/drm_fbdev_shmem.hdrm/drm_file.hdrm/drm_gem_framebuffer_helper.hdrm/drm_ioctl.hdrm/drm_managed.hdrm/drm_print.hdrm/drm_probe_helper.hdrm/drm_gem_shmem_helper.hdrm/drm_vblank.hvkms_config.hvkms_configfs.hvkms_drv.h
Detected Declarations
function vkms_atomic_commit_tailfunction for_each_old_crtc_in_statefunction vkms_atomic_checkfunction for_each_new_crtc_in_statefunction vkms_modeset_initfunction vkms_createfunction vkms_initfunction vkms_destroyfunction vkms_exitmodule init vkms_init
Annotated Snippet
module_init(vkms_init);
module_exit(vkms_exit);
MODULE_AUTHOR("Haneen Mohammed <hamohammed.sa@gmail.com>");
MODULE_AUTHOR("Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>");
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/device/faux.h`, `linux/dma-mapping.h`, `drm/clients/drm_client_setup.h`, `drm/drm_gem.h`, `drm/drm_atomic.h`, `drm/drm_atomic_helper.h`, `drm/drm_colorop.h`.
- Detected declarations: `function vkms_atomic_commit_tail`, `function for_each_old_crtc_in_state`, `function vkms_atomic_check`, `function for_each_new_crtc_in_state`, `function vkms_modeset_init`, `function vkms_create`, `function vkms_init`, `function vkms_destroy`, `function vkms_exit`, `module init vkms_init`.
- 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.