drivers/platform/x86/classmate-laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/classmate-laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/classmate-laptop.c- Extension
.c- Size
- 27386 bytes
- Lines
- 1175
- 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/init.hlinux/module.hlinux/slab.hlinux/workqueue.hlinux/acpi.hlinux/backlight.hlinux/input.hlinux/rfkill.hlinux/sysfs.h
Detected Declarations
struct cmpc_accelstruct ipml200_devfunction cmpc_add_acpi_notify_devicefunction cmpc_remove_acpi_notify_devicefunction cmpc_start_accel_v4function cmpc_stop_accel_v4function cmpc_accel_set_sensitivity_v4function cmpc_accel_set_g_select_v4function cmpc_get_accel_v4function cmpc_accel_handler_v4function cmpc_accel_sensitivity_show_v4function cmpc_accel_sensitivity_store_v4function cmpc_accel_g_select_show_v4function cmpc_accel_g_select_store_v4function cmpc_accel_open_v4function cmpc_accel_close_v4function cmpc_accel_idev_init_v4function cmpc_accel_suspend_v4function cmpc_accel_resume_v4function cmpc_accel_add_v4function cmpc_accel_remove_v4function cmpc_start_accelfunction cmpc_stop_accelfunction cmpc_accel_set_sensitivityfunction cmpc_get_accelfunction cmpc_accel_handlerfunction cmpc_accel_sensitivity_showfunction cmpc_accel_sensitivity_storefunction cmpc_accel_openfunction cmpc_accel_closefunction cmpc_accel_idev_initfunction cmpc_accel_addfunction cmpc_accel_removefunction cmpc_get_tabletfunction cmpc_tablet_handlerfunction cmpc_tablet_idev_initfunction cmpc_tablet_addfunction cmpc_tablet_removefunction cmpc_tablet_resumefunction cmpc_get_brightnessfunction cmpc_set_brightnessfunction cmpc_bl_get_brightnessfunction cmpc_bl_update_statusfunction cmpc_get_rfkill_wlanfunction cmpc_set_rfkill_wlanfunction cmpc_rfkill_queryfunction cmpc_rfkill_blockfunction cmpc_ipml_add
Annotated Snippet
module_init(cmpc_init);
module_exit(cmpc_exit);
static const struct acpi_device_id cmpc_device_ids[] __maybe_unused = {
{CMPC_ACCEL_HID, 0},
{CMPC_ACCEL_HID_V4, 0},
{CMPC_TABLET_HID, 0},
{CMPC_IPML_HID, 0},
{CMPC_KEYS_HID, 0},
{"", 0}
};
MODULE_DEVICE_TABLE(acpi, cmpc_device_ids);
MODULE_DESCRIPTION("Support for Intel Classmate PC ACPI devices");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/slab.h`, `linux/workqueue.h`, `linux/acpi.h`, `linux/backlight.h`, `linux/input.h`, `linux/rfkill.h`.
- Detected declarations: `struct cmpc_accel`, `struct ipml200_dev`, `function cmpc_add_acpi_notify_device`, `function cmpc_remove_acpi_notify_device`, `function cmpc_start_accel_v4`, `function cmpc_stop_accel_v4`, `function cmpc_accel_set_sensitivity_v4`, `function cmpc_accel_set_g_select_v4`, `function cmpc_get_accel_v4`, `function cmpc_accel_handler_v4`.
- 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.