drivers/media/pci/cx25821/cx25821-core.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx25821/cx25821-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx25821/cx25821-core.c- Extension
.c- Size
- 35750 bytes
- Lines
- 1387
- 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.
- 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/i2c.hlinux/slab.hcx25821.hcx25821-sram.hcx25821-video.h
Detected Declarations
function cx25821_risc_decodefunction cx25821_registers_initfunction cx25821_sram_channel_setupfunction cx25821_sram_channel_setup_audiofunction cx25821_sram_channel_dumpfunction cx25821_sram_channel_dump_audiofunction cx25821_shutdownfunction cx25821_set_pixel_formatfunction cx25821_set_vip_modefunction cx25821_initializefunction cx25821_get_resourcesfunction cx25821_dev_checkrevisionfunction cx25821_iounmapfunction cx25821_dev_setupfunction cx25821_dev_unregisterfunction cx25821_riscmem_allocfunction cx25821_risc_bufferfunction cx25821_risc_databuffer_audiofunction cx25821_free_bufferfunction cx25821_irqfunction cx25821_print_irqbitsfunction cx25821_initdevfunction cx25821_finidevfunction cx25821_initfunction cx25821_finimodule init cx25821_initexport cx25821_sram_channelsexport cx25821_sram_channel_setup_audioexport cx25821_sram_channel_dump_audioexport cx25821_dev_unregisterexport cx25821_riscmem_allocexport cx25821_risc_databuffer_audioexport cx25821_print_irqbitsexport cx25821_dev_get
Annotated Snippet
static struct pci_driver cx25821_pci_driver = {
.name = "cx25821",
.id_table = cx25821_pci_tbl,
.probe = cx25821_initdev,
.remove = cx25821_finidev,
};
static int __init cx25821_init(void)
{
pr_info("driver loaded\n");
return pci_register_driver(&cx25821_pci_driver);
}
static void __exit cx25821_fini(void)
{
pci_unregister_driver(&cx25821_pci_driver);
}
module_init(cx25821_init);
module_exit(cx25821_fini);
Annotation
- Immediate include surface: `linux/i2c.h`, `linux/slab.h`, `cx25821.h`, `cx25821-sram.h`, `cx25821-video.h`.
- Detected declarations: `function cx25821_risc_decode`, `function cx25821_registers_init`, `function cx25821_sram_channel_setup`, `function cx25821_sram_channel_setup_audio`, `function cx25821_sram_channel_dump`, `function cx25821_sram_channel_dump_audio`, `function cx25821_shutdown`, `function cx25821_set_pixel_format`, `function cx25821_set_vip_mode`, `function cx25821_initialize`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: pattern implementation candidate.
- 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.