drivers/media/test-drivers/vimc/vimc-core.c
Source file repositories/reference/linux-study-clean/drivers/media/test-drivers/vimc/vimc-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/test-drivers/vimc/vimc-core.c- Extension
.c- Size
- 11078 bytes
- Lines
- 452
- Domain
- Driver Families
- Bucket
- drivers/media
- 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/dma-mapping.hlinux/font.hlinux/init.hlinux/module.hlinux/platform_device.hmedia/media-device.hmedia/tpg/v4l2-tpg.hmedia/v4l2-device.hvimc-common.h
Detected Declarations
struct vimc_data_linkstruct vimc_ancillary_linkstruct vimc_pipeline_configenum vimc_data_link_entsfunction vimc_rm_linksfunction vimc_create_linksfunction vimc_release_subdevsfunction vimc_unregister_subdevsfunction vimc_add_subdevsfunction vimc_v4l2_dev_releasefunction vimc_register_devicesfunction vimc_probefunction vimc_removefunction vimc_dev_releasefunction vimc_initfunction vimc_exitmodule init vimc_init
Annotated Snippet
module_init(vimc_init);
module_exit(vimc_exit);
MODULE_DESCRIPTION("Virtual Media Controller Driver (VIMC)");
MODULE_AUTHOR("Helen Fornazier <helen.fornazier@gmail.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/font.h`, `linux/init.h`, `linux/module.h`, `linux/platform_device.h`, `media/media-device.h`, `media/tpg/v4l2-tpg.h`, `media/v4l2-device.h`.
- Detected declarations: `struct vimc_data_link`, `struct vimc_ancillary_link`, `struct vimc_pipeline_config`, `enum vimc_data_link_ents`, `function vimc_rm_links`, `function vimc_create_links`, `function vimc_release_subdevs`, `function vimc_unregister_subdevs`, `function vimc_add_subdevs`, `function vimc_v4l2_dev_release`.
- Atlas domain: Driver Families / drivers/media.
- 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.