drivers/platform/x86/ayaneo-ec.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/ayaneo-ec.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/ayaneo-ec.c- Extension
.c- Size
- 13705 bytes
- Lines
- 594
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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/acpi.hlinux/bits.hlinux/dmi.hlinux/err.hlinux/hwmon.hlinux/init.hlinux/kernel.hlinux/module.hlinux/platform_device.hlinux/pm.hlinux/power_supply.hlinux/sysfs.hacpi/battery.h
Detected Declarations
struct ayaneo_ec_quirkstruct ayaneo_ec_platform_datafunction ayaneo_ec_hwmon_is_visiblefunction ayaneo_ec_readfunction ayaneo_ec_writefunction ayaneo_psy_ext_get_propfunction ayaneo_psy_ext_set_propfunction ayaneo_psy_prop_is_writeablefunction ayaneo_add_batteryfunction ayaneo_remove_batteryfunction controller_power_storefunction controller_power_showfunction controller_modules_showfunction aya_mm_is_visiblefunction ayaneo_ec_probefunction ayaneo_freezefunction ayaneo_restorefunction ayaneo_ec_initfunction ayaneo_ec_exitmodule init ayaneo_ec_init
Annotated Snippet
module_init(ayaneo_ec_init);
module_exit(ayaneo_ec_exit);
MODULE_AUTHOR("Antheas Kapenekakis <lkml@antheas.dev>");
MODULE_DESCRIPTION("Ayaneo Embedded Controller (EC) platform features");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bits.h`, `linux/dmi.h`, `linux/err.h`, `linux/hwmon.h`, `linux/init.h`, `linux/kernel.h`, `linux/module.h`.
- Detected declarations: `struct ayaneo_ec_quirk`, `struct ayaneo_ec_platform_data`, `function ayaneo_ec_hwmon_is_visible`, `function ayaneo_ec_read`, `function ayaneo_ec_write`, `function ayaneo_psy_ext_get_prop`, `function ayaneo_psy_ext_set_prop`, `function ayaneo_psy_prop_is_writeable`, `function ayaneo_add_battery`, `function ayaneo_remove_battery`.
- Atlas domain: Driver Families / drivers/platform.
- 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.