drivers/fpga/fpga-bridge.c
Source file repositories/reference/linux-study-clean/drivers/fpga/fpga-bridge.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/fpga/fpga-bridge.c- Extension
.c- Size
- 10651 bytes
- Lines
- 447
- Domain
- Driver Families
- Bucket
- drivers/fpga
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/fpga/fpga-bridge.hlinux/idr.hlinux/kernel.hlinux/module.hlinux/of_platform.hlinux/slab.hlinux/spinlock.h
Detected Declarations
function fpga_bridge_enablefunction fpga_bridge_disablefunction fpga_bridge_dev_matchfunction fpga_bridge_putfunction fpga_bridges_enablefunction list_for_each_entryfunction fpga_bridges_disablefunction list_for_each_entryfunction fpga_bridges_putfunction list_for_each_entry_safefunction of_fpga_bridge_get_to_listfunction fpga_bridge_get_to_listfunction name_showfunction state_showfunction __fpga_bridge_registerfunction fpga_bridge_unregisterfunction fpga_bridge_dev_releasefunction fpga_bridge_dev_initfunction fpga_bridge_dev_exitmodule init fpga_bridge_dev_initexport fpga_bridge_enableexport fpga_bridge_disableexport of_fpga_bridge_getexport fpga_bridge_getexport fpga_bridge_putexport fpga_bridges_enableexport fpga_bridges_disableexport fpga_bridges_putexport of_fpga_bridge_get_to_listexport fpga_bridge_get_to_listexport __fpga_bridge_registerexport fpga_bridge_unregister
Annotated Snippet
subsys_initcall(fpga_bridge_dev_init);
module_exit(fpga_bridge_dev_exit);
Annotation
- Immediate include surface: `linux/fpga/fpga-bridge.h`, `linux/idr.h`, `linux/kernel.h`, `linux/module.h`, `linux/of_platform.h`, `linux/slab.h`, `linux/spinlock.h`.
- Detected declarations: `function fpga_bridge_enable`, `function fpga_bridge_disable`, `function fpga_bridge_dev_match`, `function fpga_bridge_put`, `function fpga_bridges_enable`, `function list_for_each_entry`, `function fpga_bridges_disable`, `function list_for_each_entry`, `function fpga_bridges_put`, `function list_for_each_entry_safe`.
- Atlas domain: Driver Families / drivers/fpga.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.