drivers/staging/greybus/fw-core.c
Source file repositories/reference/linux-study-clean/drivers/staging/greybus/fw-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/greybus/fw-core.c- Extension
.c- Size
- 8038 bytes
- Lines
- 312
- Domain
- Driver Families
- Bucket
- drivers/staging
- 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/greybus.hfirmware.hspilib.h
Detected Declarations
struct gb_fw_corefunction gb_fw_spi_connection_initfunction gb_fw_spi_connection_exitfunction gb_fw_core_probefunction gb_fw_core_disconnectfunction fw_core_initfunction fw_core_exitmodule init fw_core_init
Annotated Snippet
module_init(fw_core_init);
static void __exit fw_core_exit(void)
{
greybus_deregister(&gb_fw_core_driver);
cap_exit();
fw_mgmt_exit();
}
module_exit(fw_core_exit);
MODULE_ALIAS("greybus:firmware");
MODULE_AUTHOR("Viresh Kumar <viresh.kumar@linaro.org>");
MODULE_DESCRIPTION("Greybus Firmware Bundle Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/firmware.h`, `linux/greybus.h`, `firmware.h`, `spilib.h`.
- Detected declarations: `struct gb_fw_core`, `function gb_fw_spi_connection_init`, `function gb_fw_spi_connection_exit`, `function gb_fw_core_probe`, `function gb_fw_core_disconnect`, `function fw_core_init`, `function fw_core_exit`, `module init fw_core_init`.
- Atlas domain: Driver Families / drivers/staging.
- 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.