drivers/media/pci/netup_unidvb/netup_unidvb_core.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/netup_unidvb/netup_unidvb_core.c- Extension
.c- Size
- 30085 bytes
- Lines
- 1029
- 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
linux/init.hlinux/module.hlinux/moduleparam.hlinux/kmod.hlinux/kernel.hlinux/slab.hlinux/interrupt.hlinux/delay.hlinux/list.hmedia/videobuf2-v4l2.hmedia/videobuf2-vmalloc.hnetup_unidvb.hcxd2841er.hhorus3a.hascot2e.hhelene.hlnbh25.h
Detected Declarations
struct netup_dma_regsstruct netup_unidvb_bufferfunction netup_unidvb_tuner_ctrlfunction netup_unidvb_dev_enablefunction netup_unidvb_dma_enablefunction netup_dma_interruptfunction netup_unidvb_isrfunction netup_unidvb_queue_setupfunction netup_unidvb_buf_preparefunction netup_unidvb_buf_queuefunction netup_unidvb_start_streamingfunction netup_unidvb_stop_streamingfunction netup_unidvb_queue_initfunction netup_unidvb_dvb_initfunction netup_unidvb_dvb_finifunction netup_unidvb_dvb_setupfunction netup_unidvb_ring_copyfunction netup_unidvb_dma_workerfunction netup_unidvb_queue_cleanupfunction netup_unidvb_dma_timeoutfunction netup_unidvb_dma_initfunction netup_unidvb_dma_finifunction netup_unidvb_dma_setupfunction netup_unidvb_ci_setupfunction netup_unidvb_request_mmiofunction pci_resource_lenfunction netup_unidvb_request_modulesfunction netup_unidvb_initdevfunction netup_unidvb_finidev
Annotated Snippet
static struct pci_driver netup_unidvb_pci_driver = {
.name = "netup_unidvb",
.id_table = netup_unidvb_pci_tbl,
.probe = netup_unidvb_initdev,
.remove = netup_unidvb_finidev,
};
module_pci_driver(netup_unidvb_pci_driver);
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/kmod.h`, `linux/kernel.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/delay.h`.
- Detected declarations: `struct netup_dma_regs`, `struct netup_unidvb_buffer`, `function netup_unidvb_tuner_ctrl`, `function netup_unidvb_dev_enable`, `function netup_unidvb_dma_enable`, `function netup_dma_interrupt`, `function netup_unidvb_isr`, `function netup_unidvb_queue_setup`, `function netup_unidvb_buf_prepare`, `function netup_unidvb_buf_queue`.
- 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.