drivers/media/pci/cx88/cx88-video.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx88/cx88-video.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx88/cx88-video.c- Extension
.c- Size
- 43864 bytes
- Lines
- 1634
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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
cx88.hlinux/init.hlinux/list.hlinux/module.hlinux/kmod.hlinux/kernel.hlinux/slab.hlinux/interrupt.hlinux/dma-mapping.hlinux/delay.hlinux/kthread.hasm/div64.hmedia/v4l2-common.hmedia/v4l2-ioctl.hmedia/v4l2-event.hmedia/i2c/wm8775.h
Detected Declarations
struct cx88_ctrlfunction cx88_video_muxfunction start_video_dmafunction stop_video_dmafunction restart_video_queuefunction queue_setupfunction buffer_preparefunction buffer_finishfunction buffer_queuefunction start_streamingfunction stop_streamingfunction radio_openfunction cx8800_s_vid_ctrlfunction cx8800_s_aud_ctrlfunction vidioc_g_fmt_vid_capfunction vidioc_try_fmt_vid_capfunction vidioc_s_fmt_vid_capfunction cx88_querycapfunction vidioc_querycapfunction vidioc_enum_fmt_vid_capfunction vidioc_g_stdfunction vidioc_s_stdfunction cx88_enum_inputfunction vidioc_enum_inputfunction vidioc_g_inputfunction vidioc_s_inputfunction vidioc_g_tunerfunction vidioc_s_tunerfunction vidioc_g_frequencyfunction cx88_set_freqfunction vidioc_s_frequencyfunction vidioc_g_registerfunction vidioc_s_registerfunction radio_g_tunerfunction radio_s_tunerfunction cx8800_vid_irqfunction cx8800_irqfunction cx8800_unregister_videofunction cx8800_initdevfunction cx8800_finidevfunction cx8800_suspendfunction cx8800_resumeexport cx88_video_muxexport cx88_querycapexport cx88_enum_inputexport cx88_set_freq
Annotated Snippet
static struct pci_driver cx8800_pci_driver = {
.name = "cx8800",
.id_table = cx8800_pci_tbl,
.probe = cx8800_initdev,
.remove = cx8800_finidev,
.driver.pm = &cx8800_pm_ops,
};
module_pci_driver(cx8800_pci_driver);
Annotation
- Immediate include surface: `cx88.h`, `linux/init.h`, `linux/list.h`, `linux/module.h`, `linux/kmod.h`, `linux/kernel.h`, `linux/slab.h`, `linux/interrupt.h`.
- Detected declarations: `struct cx88_ctrl`, `function cx88_video_mux`, `function start_video_dma`, `function stop_video_dma`, `function restart_video_queue`, `function queue_setup`, `function buffer_prepare`, `function buffer_finish`, `function buffer_queue`, `function start_streaming`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: pattern 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.