drivers/platform/x86/asus-armoury.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/asus-armoury.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/asus-armoury.c- Extension
.c- Size
- 34198 bytes
- Lines
- 1168
- 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/array_size.hlinux/bitfield.hlinux/device.hlinux/dmi.hlinux/err.hlinux/errno.hlinux/fs.hlinux/kernel.hlinux/kmod.hlinux/kobject.hlinux/kstrtox.hlinux/module.hlinux/mutex.hlinux/pci.hlinux/platform_data/x86/asus-wmi.hlinux/printk.hlinux/power_supply.hlinux/sysfs.hasus-armoury.hfirmware_attributes_class.h
Detected Declarations
struct rog_tunablesstruct asus_armoury_privstruct fw_attrs_groupstruct asus_attr_groupfunction asus_set_reboot_and_signal_eventfunction pending_reboot_showfunction asus_bios_requires_rebootfunction armoury_has_devstatefunction armoury_get_devstatefunction armoury_set_devstatefunction armoury_attr_enum_listfunction armoury_attr_uint_storefunction armoury_attr_uint_showfunction enum_type_showfunction int_type_showfunction mini_led_mode_current_value_showfunction mini_led_mode_current_value_storefunction mini_led_mode_possible_values_showfunction gpu_mux_mode_current_value_storefunction dgpu_disable_current_value_storefunction scoped_guardfunction armoury_pci_rescanfunction egpu_enable_current_value_storefunction scoped_guardfunction egpu_enable_current_value_showfunction scoped_guardfunction egpu_enable_possible_values_showfunction apu_mem_current_value_showfunction apu_mem_current_value_storefunction apu_mem_possible_values_showfunction is_power_tunable_attrfunction has_valid_limitfunction asus_fw_attr_addfunction init_rog_tunablesfunction asus_fw_initfunction asus_fw_exitmodule init asus_fw_init
Annotated Snippet
module_init(asus_fw_init);
module_exit(asus_fw_exit);
MODULE_IMPORT_NS("ASUS_WMI");
MODULE_AUTHOR("Luke Jones <luke@ljones.dev>");
MODULE_DESCRIPTION("ASUS BIOS Configuration Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("wmi:" ASUS_NB_WMI_EVENT_GUID);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/array_size.h`, `linux/bitfield.h`, `linux/device.h`, `linux/dmi.h`, `linux/err.h`, `linux/errno.h`, `linux/fs.h`.
- Detected declarations: `struct rog_tunables`, `struct asus_armoury_priv`, `struct fw_attrs_group`, `struct asus_attr_group`, `function asus_set_reboot_and_signal_event`, `function pending_reboot_show`, `function asus_bios_requires_reboot`, `function armoury_has_devstate`, `function armoury_get_devstate`, `function armoury_set_devstate`.
- 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.