drivers/platform/x86/compal-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/compal-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/compal-laptop.c- Extension
.c- Size
- 29896 bytes
- Lines
- 1114
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/module.hlinux/kernel.hlinux/init.hlinux/acpi.hlinux/dmi.hlinux/backlight.hlinux/platform_device.hlinux/rfkill.hlinux/hwmon.hlinux/hwmon-sysfs.hlinux/power_supply.hlinux/sysfs.hacpi/video.h
Detected Declarations
struct compal_datafunction ec_read_u8function ec_read_s8function ec_read_u16function ec_read_s16function ec_read_sequencefunction set_backlight_levelfunction get_backlight_levelfunction set_backlight_statefunction pwm_enable_controlfunction pwm_disable_controlfunction set_pwmfunction get_fan_rpmfunction bl_get_brightnessfunction bl_update_statusfunction compal_rfkill_setfunction compal_rfkill_pollfunction pwm_enable_showfunction pwm_enable_storefunction pwm_showfunction pwm_storefunction fan_showfunction bat_statusfunction bat_healthfunction bat_is_presentfunction bat_technologyfunction bat_capacity_levelfunction bat_get_propertyfunction bat_set_propertyfunction bat_writeable_propertyfunction dmi_check_cbfunction dmi_check_cb_extrafunction initialize_power_supply_datafunction initialize_fan_control_datafunction setup_rfkillfunction compal_probefunction compal_removefunction compal_initfunction compal_cleanupmodule init compal_init
Annotated Snippet
module_init(compal_init);
module_exit(compal_cleanup);
MODULE_AUTHOR("Cezary Jackiewicz");
MODULE_AUTHOR("Roald Frederickx <roald.frederickx@gmail.com>");
MODULE_DESCRIPTION("Compal Laptop Support");
MODULE_VERSION(DRIVER_VERSION);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/init.h`, `linux/acpi.h`, `linux/dmi.h`, `linux/backlight.h`, `linux/platform_device.h`, `linux/rfkill.h`.
- Detected declarations: `struct compal_data`, `function ec_read_u8`, `function ec_read_s8`, `function ec_read_u16`, `function ec_read_s16`, `function ec_read_sequence`, `function set_backlight_level`, `function get_backlight_level`, `function set_backlight_state`, `function pwm_enable_control`.
- Atlas domain: Driver Families / drivers/platform.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.