drivers/platform/x86/uniwill/uniwill-acpi.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/uniwill/uniwill-acpi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/uniwill/uniwill-acpi.c- Extension
.c- Size
- 66569 bytes
- Lines
- 2539
- 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.
- 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/acpi.hlinux/array_size.hlinux/bits.hlinux/bitfield.hlinux/cleanup.hlinux/debugfs.hlinux/delay.hlinux/device.hlinux/device/driver.hlinux/dmi.hlinux/errno.hlinux/fixp-arith.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/init.hlinux/input.hlinux/input/sparse-keymap.hlinux/kernel.hlinux/kstrtox.hlinux/leds.hlinux/led-class-multicolor.hlinux/limits.hlinux/list.hlinux/minmax.hlinux/module.hlinux/mutex.hlinux/notifier.hlinux/platform_device.hlinux/pm.hlinux/printk.hlinux/regmap.hlinux/string.h
Detected Declarations
struct uniwill_datastruct uniwill_battery_entrystruct uniwill_device_descriptorenum usb_c_power_priority_optionsfunction uniwill_device_supportsfunction uniwill_ec_reg_writefunction uniwill_ec_reg_readfunction uniwill_writeable_regfunction uniwill_readable_regfunction uniwill_volatile_regfunction fn_lock_storefunction fn_lock_showfunction super_key_enable_storefunction super_key_enable_showfunction touchpad_toggle_enable_storefunction touchpad_toggle_enable_showfunction rainbow_animation_storefunction rainbow_animation_showfunction breathing_in_suspend_storefunction breathing_in_suspend_showfunction ctgp_offset_storefunction ctgp_offset_showfunction uniwill_nvidia_ctgp_initfunction usb_c_power_priority_storefunction usb_c_power_priority_showfunction usb_c_power_priority_restorefunction usb_c_power_priority_initfunction uniwill_attr_is_visiblefunction uniwill_is_visiblefunction uniwill_readfunction uniwill_read_stringfunction uniwill_hwmon_initfunction uniwill_led_brightness_setfunction uniwill_led_initfunction uniwill_sanitize_battery_thresholdfunction uniwill_get_propertyfunction uniwill_set_propertyfunction uniwill_property_is_writeablefunction uniwill_add_batteryfunction uniwill_remove_batteryfunction scoped_guardfunction uniwill_battery_initfunction uniwill_notifier_callfunction list_for_each_entryfunction uniwill_input_initfunction uniwill_disable_manual_controlfunction uniwill_ec_initfunction uniwill_probe
Annotated Snippet
module_init(uniwill_init);
static void __exit uniwill_exit(void)
{
uniwill_wmi_unregister_driver();
platform_driver_unregister(&uniwill_driver);
}
module_exit(uniwill_exit);
MODULE_AUTHOR("Armin Wolf <W_Armin@gmx.de>");
MODULE_DESCRIPTION("Uniwill notebook driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/array_size.h`, `linux/bits.h`, `linux/bitfield.h`, `linux/cleanup.h`, `linux/debugfs.h`, `linux/delay.h`, `linux/device.h`.
- Detected declarations: `struct uniwill_data`, `struct uniwill_battery_entry`, `struct uniwill_device_descriptor`, `enum usb_c_power_priority_options`, `function uniwill_device_supports`, `function uniwill_ec_reg_write`, `function uniwill_ec_reg_read`, `function uniwill_writeable_reg`, `function uniwill_readable_reg`, `function uniwill_volatile_reg`.
- Atlas domain: Driver Families / drivers/platform.
- 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.