drivers/fpga/fpga-mgr.c
Source file repositories/reference/linux-study-clean/drivers/fpga/fpga-mgr.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/fpga/fpga-mgr.c- Extension
.c- Size
- 26249 bytes
- Lines
- 1011
- 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.
- 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/firmware.hlinux/fpga/fpga-mgr.hlinux/idr.hlinux/module.hlinux/of.hlinux/mutex.hlinux/slab.hlinux/scatterlist.hlinux/highmem.h
Detected Declarations
struct fpga_mgr_devresfunction fpga_mgr_fpga_removefunction fpga_mgr_statefunction fpga_mgr_statusfunction fpga_mgr_writefunction fpga_mgr_write_completefunction fpga_mgr_parse_headerfunction fpga_mgr_write_initfunction fpga_mgr_write_sgfunction fpga_image_info_freefunction fpga_mgr_parse_header_mappedfunction fpga_mgr_parse_header_sg_firstfunction fpga_mgr_parse_header_sg_firstfunction fpga_mgr_write_init_buffunction fpga_mgr_prepare_sgfunction of_fpga_mgr_getfunction fpga_mgr_buf_load_mappedfunction of_fpga_mgr_getfunction of_fpga_mgr_getfunction fpga_mgr_loadfunction name_showfunction state_showfunction status_showfunction fpga_mgr_dev_matchfunction fpga_mgr_putfunction Managerfunction fpga_mgr_unlockfunction fpga_mgr_unregisterfunction fpga_mgr_unregisterfunction fpga_mgr_unregisterfunction devm_fpga_mgr_unregisterfunction fpga_mgr_register_fullfunction fpga_mgr_registerfunction fpga_mgr_dev_releasefunction fpga_mgr_class_initfunction fpga_mgr_class_exitmodule init fpga_mgr_class_initexport fpga_image_info_allocexport fpga_image_info_freeexport fpga_mgr_loadexport fpga_mgr_getexport of_fpga_mgr_getexport fpga_mgr_putexport fpga_mgr_lockexport fpga_mgr_unlockexport __fpga_mgr_register_fullexport __fpga_mgr_registerexport fpga_mgr_unregister
Annotated Snippet
subsys_initcall(fpga_mgr_class_init);
module_exit(fpga_mgr_class_exit);
Annotation
- Immediate include surface: `linux/firmware.h`, `linux/fpga/fpga-mgr.h`, `linux/idr.h`, `linux/module.h`, `linux/of.h`, `linux/mutex.h`, `linux/slab.h`, `linux/scatterlist.h`.
- Detected declarations: `struct fpga_mgr_devres`, `function fpga_mgr_fpga_remove`, `function fpga_mgr_state`, `function fpga_mgr_status`, `function fpga_mgr_write`, `function fpga_mgr_write_complete`, `function fpga_mgr_parse_header`, `function fpga_mgr_write_init`, `function fpga_mgr_write_sg`, `function fpga_image_info_free`.
- Atlas domain: Driver Families / drivers/fpga.
- Implementation status: integration implementation candidate.
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.