drivers/mfd/cgbc-core.c
Source file repositories/reference/linux-study-clean/drivers/mfd/cgbc-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/cgbc-core.c- Extension
.c- Size
- 10335 bytes
- Lines
- 430
- Domain
- Driver Families
- Bucket
- drivers/mfd
- 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/dmi.hlinux/iopoll.hlinux/mfd/cgbc.hlinux/mfd/core.hlinux/module.hlinux/platform_device.hlinux/sysfs.h
Detected Declarations
function cgbc_wait_devicefunction cgbc_session_commandfunction cgbc_session_requestfunction cgbc_session_releasefunction cgbc_command_lockfunction cgbc_command_unlockfunction cgbc_commandfunction cgbc_mapfunction cgbc_version_showfunction cgbc_get_versionfunction cgbc_init_devicefunction cgbc_probefunction cgbc_removefunction cgbc_initfunction cgbc_exitmodule init cgbc_initexport cgbc_command
Annotated Snippet
module_init(cgbc_init);
module_exit(cgbc_exit);
MODULE_DESCRIPTION("Congatec Board Controller Core Driver");
MODULE_AUTHOR("Thomas Richard <thomas.richard@bootlin.com>");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:cgbc-core");
Annotation
- Immediate include surface: `linux/dmi.h`, `linux/iopoll.h`, `linux/mfd/cgbc.h`, `linux/mfd/core.h`, `linux/module.h`, `linux/platform_device.h`, `linux/sysfs.h`.
- Detected declarations: `function cgbc_wait_device`, `function cgbc_session_command`, `function cgbc_session_request`, `function cgbc_session_release`, `function cgbc_command_lock`, `function cgbc_command_unlock`, `function cgbc_command`, `function cgbc_map`, `function cgbc_version_show`, `function cgbc_get_version`.
- Atlas domain: Driver Families / drivers/mfd.
- 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.