drivers/staging/media/ipu3/ipu3.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/ipu3/ipu3.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/ipu3/ipu3.c- Extension
.c- Size
- 22181 bytes
- Lines
- 866
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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/interrupt.hlinux/module.hlinux/pm_runtime.hipu3.hipu3-css-fw.hipu3-dmamap.hipu3-mmu.h
Detected Declarations
function imgu_node_to_queuefunction imgu_map_nodefunction imgu_dummybufs_cleanupfunction imgu_dummybufs_preallocatefunction imgu_dummybufs_initfunction imgu_dummybufs_checkfunction imgu_buffer_donefunction imgu_queue_buffersfunction list_for_each_entry_safefunction imgu_powerupfunction imgu_powerdownfunction imgu_s_streamfunction for_each_set_bitfunction imgu_video_nodes_exitfunction imgu_video_nodes_initfunction imgu_isr_threadedfunction imgu_isrfunction imgu_pci_config_setupfunction imgu_pci_probefunction imgu_pci_removefunction imgu_suspendfunction imgu_resumefunction for_each_set_bitfunction imgu_rpm_dummy_cb
Annotated Snippet
static struct pci_driver imgu_pci_driver = {
.name = IMGU_NAME,
.id_table = imgu_pci_tbl,
.probe = imgu_pci_probe,
.remove = imgu_pci_remove,
.driver = {
.pm = &imgu_pm_ops,
},
};
module_pci_driver(imgu_pci_driver);
MODULE_AUTHOR("Tuukka Toivonen");
MODULE_AUTHOR("Tianshu Qiu <tian.shu.qiu@intel.com>");
MODULE_AUTHOR("Jian Xu Zheng");
MODULE_AUTHOR("Yuning Pu");
MODULE_AUTHOR("Yong Zhi <yong.zhi@intel.com>");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Intel ipu3_imgu PCI driver");
MODULE_FIRMWARE(IMGU_FW_NAME);
MODULE_FIRMWARE(IMGU_FW_NAME_20161208);
MODULE_FIRMWARE(IMGU_FW_NAME_IPU_20161208);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/interrupt.h`, `linux/module.h`, `linux/pm_runtime.h`, `ipu3.h`, `ipu3-css-fw.h`, `ipu3-dmamap.h`, `ipu3-mmu.h`.
- Detected declarations: `function imgu_node_to_queue`, `function imgu_map_node`, `function imgu_dummybufs_cleanup`, `function imgu_dummybufs_preallocate`, `function imgu_dummybufs_init`, `function imgu_dummybufs_check`, `function imgu_buffer_done`, `function imgu_queue_buffers`, `function list_for_each_entry_safe`, `function imgu_powerup`.
- Atlas domain: Driver Families / drivers/staging.
- 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.