drivers/media/usb/uvc/uvc_driver.c
Source file repositories/reference/linux-study-clean/drivers/media/usb/uvc/uvc_driver.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/usb/uvc/uvc_driver.c- Extension
.c- Size
- 93531 bytes
- Lines
- 3321
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/atomic.hlinux/bits.hlinux/gpio/consumer.hlinux/kernel.hlinux/list.hlinux/module.hlinux/slab.hlinux/usb.hlinux/usb/quirks.hlinux/usb/uvc.hlinux/videodev2.hlinux/vmalloc.hlinux/wait.hlinux/unaligned.hmedia/v4l2-common.hmedia/v4l2-ioctl.huvcvideo.h
Detected Declarations
function uvc_colorspacefunction uvc_xfer_funcfunction uvc_ycbcr_encfunction list_for_each_entryfunction list_for_each_entry_continuefunction list_for_each_entryfunction uvc_stream_deletefunction uvc_parse_framefunction uvc_parse_formatfunction uvc_parse_streamingfunction uvc_entity_set_namefunction uvc_parse_vendor_controlfunction uvc_parse_standard_controlfunction uvc_parse_controlfunction uvc_gpio_eventfunction uvc_gpio_get_curfunction uvc_gpio_get_infofunction uvc_gpio_irqfunction uvc_gpio_parsefunction uvc_gpio_init_irqfunction uvc_gpio_deinitfunction uvc_scan_chain_entityfunction uvc_scan_chain_forwardfunction uvc_scan_chain_backwardfunction uvc_scan_chainfunction uvc_print_termsfunction list_for_each_entryfunction uvc_scan_fallbackfunction uvc_scan_devicefunction list_for_each_entryfunction disconnectfunction list_for_each_safefunction list_for_each_safefunction list_for_each_safefunction uvc_releasefunction uvc_unregister_videofunction list_for_each_entryfunction uvc_register_video_devicefunction uvc_register_videofunction uvc_register_termsfunction list_for_each_entryfunction uvc_register_chainsfunction list_for_each_entryfunction uvc_probefunction uvc_disconnectfunction uvc_suspendfunction list_for_each_entryfunction __uvc_resume
Annotated Snippet
module_init(uvc_init);
module_exit(uvc_cleanup);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL");
MODULE_VERSION(DRIVER_VERSION);
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/bits.h`, `linux/gpio/consumer.h`, `linux/kernel.h`, `linux/list.h`, `linux/module.h`, `linux/slab.h`, `linux/usb.h`.
- Detected declarations: `function uvc_colorspace`, `function uvc_xfer_func`, `function uvc_ycbcr_enc`, `function list_for_each_entry`, `function list_for_each_entry_continue`, `function list_for_each_entry`, `function uvc_stream_delete`, `function uvc_parse_frame`, `function uvc_parse_format`, `function uvc_parse_streaming`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.