drivers/media/pci/zoran/zoran_card.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/zoran/zoran_card.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/zoran/zoran_card.c- Extension
.c- Size
- 39179 bytes
- Lines
- 1437
- 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/delay.hlinux/kernel.hlinux/module.hlinux/slab.hlinux/i2c.hlinux/i2c-algo-bit.hlinux/videodev2.hlinux/spinlock.hlinux/pci.hlinux/interrupt.hlinux/io.hmedia/v4l2-common.hmedia/i2c/bt819.hvideocodec.hzoran.hzoran_card.hzoran_device.hzr36016.hzr36050.hzr36060.h
Detected Declarations
function zr36060_readfunction zr36060_writefunction zr36050_readfunction zr36050_writefunction zr36016_readfunction zr36016_writefunction dc10_initfunction dc10plus_initfunction lml33_initfunction avs6eyes_initfunction codec_initfunction codec_exitfunction videocodec_initfunction videocodec_exitfunction zoran_i2c_getsdafunction zoran_i2c_getsclfunction zoran_i2c_setsdafunction zoran_i2c_setsclfunction zoran_register_i2cfunction zoran_unregister_i2cfunction zoran_check_jpg_settingsfunction zoran_init_video_devicefunction zoran_exit_video_devicesfunction zoran_init_video_devicesfunction v4l2_device_unregisterfunction zoran_i2c_exitfunction zoran_open_init_paramsfunction zr36057_initfunction zoran_removefunction zoran_vdev_releasefunction zoran_subdev_notifyfunction zoran_video_set_ctrlfunction zoran_debugfs_showfunction card
Annotated Snippet
static struct pci_driver zoran_driver = {
.name = "zr36067",
.id_table = zr36067_pci_tbl,
.probe = zoran_probe,
.remove = zoran_remove,
};
module_pci_driver(zoran_driver);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/i2c.h`, `linux/i2c-algo-bit.h`, `linux/videodev2.h`, `linux/spinlock.h`.
- Detected declarations: `function zr36060_read`, `function zr36060_write`, `function zr36050_read`, `function zr36050_write`, `function zr36016_read`, `function zr36016_write`, `function dc10_init`, `function dc10plus_init`, `function lml33_init`, `function avs6eyes_init`.
- 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.