drivers/mfd/wm97xx-core.c
Source file repositories/reference/linux-study-clean/drivers/mfd/wm97xx-core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/mfd/wm97xx-core.c- Extension
.c- Size
- 9241 bytes
- Lines
- 361
- 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.
- 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/device.hlinux/mfd/core.hlinux/mfd/wm97xx.hlinux/module.hlinux/regmap.hlinux/slab.hlinux/wm97xx.hsound/ac97/codec.hsound/ac97/compat.h
Detected Declarations
struct wm97xx_privfunction wm97xx_readable_regfunction wm97xx_writeable_regfunction wm9712_volatile_regfunction wm97xx_ac97_probefunction wm97xx_ac97_removefunction wm97xx_module_initfunction wm97xx_module_exitmodule init wm97xx_module_init
Annotated Snippet
module_init(wm97xx_module_init);
static void __exit wm97xx_module_exit(void)
{
snd_ac97_codec_driver_unregister(&wm97xx_ac97_driver);
}
module_exit(wm97xx_module_exit);
MODULE_DESCRIPTION("WM9712, WM9713 core driver");
MODULE_AUTHOR("Robert Jarzmik <robert.jarzmik@free.fr>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device.h`, `linux/mfd/core.h`, `linux/mfd/wm97xx.h`, `linux/module.h`, `linux/regmap.h`, `linux/slab.h`, `linux/wm97xx.h`, `sound/ac97/codec.h`.
- Detected declarations: `struct wm97xx_priv`, `function wm97xx_readable_reg`, `function wm97xx_writeable_reg`, `function wm9712_volatile_reg`, `function wm97xx_ac97_probe`, `function wm97xx_ac97_remove`, `function wm97xx_module_init`, `function wm97xx_module_exit`, `module init wm97xx_module_init`.
- Atlas domain: Driver Families / drivers/mfd.
- 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.