drivers/mfd/kempld-core.c
Source file repositories/reference/linux-study-clean/drivers/mfd/kempld-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/kempld-core.c- Extension
.c- Size
- 20661 bytes
- Lines
- 816
- 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/err.hlinux/platform_device.hlinux/mfd/core.hlinux/mfd/kempld.hlinux/mod_devicetable.hlinux/module.hlinux/property.hlinux/dmi.hlinux/io.hlinux/delay.hlinux/sysfs.h
Detected Declarations
enum kempld_cellsfunction kempld_get_hardware_mutexfunction kempld_release_hardware_mutexfunction kempld_get_info_genericfunction kempld_register_cells_genericfunction kempld_create_platform_devicefunction kempld_read8function kempld_write8function kempld_read16function kempld_write16function kempld_read32function kempld_write32function kempld_get_mutexfunction kempld_release_mutexfunction kempld_get_infofunction kempld_register_cellsfunction pld_version_showfunction pld_specification_showfunction pld_type_showfunction kempld_detect_devicefunction kempld_probefunction kempld_removefunction kempld_initfunction kempld_exitmodule init kempld_initexport kempld_read8export kempld_write8export kempld_read16export kempld_write16export kempld_read32export kempld_write32export kempld_get_mutexexport kempld_release_mutex
Annotated Snippet
module_init(kempld_init);
module_exit(kempld_exit);
MODULE_DESCRIPTION("KEM PLD Core Driver");
MODULE_AUTHOR("Michael Brunner <michael.brunner@kontron.com>");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:kempld-core");
Annotation
- Immediate include surface: `linux/err.h`, `linux/platform_device.h`, `linux/mfd/core.h`, `linux/mfd/kempld.h`, `linux/mod_devicetable.h`, `linux/module.h`, `linux/property.h`, `linux/dmi.h`.
- Detected declarations: `enum kempld_cells`, `function kempld_get_hardware_mutex`, `function kempld_release_hardware_mutex`, `function kempld_get_info_generic`, `function kempld_register_cells_generic`, `function kempld_create_platform_device`, `function kempld_read8`, `function kempld_write8`, `function kempld_read16`, `function kempld_write16`.
- 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.