drivers/platform/chrome/chromeos_laptop.c
Source file repositories/reference/linux-study-clean/drivers/platform/chrome/chromeos_laptop.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/chrome/chromeos_laptop.c- Extension
.c- Size
- 22635 bytes
- Lines
- 957
- 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/dmi.hlinux/i2c.hlinux/input.hlinux/interrupt.hlinux/ioport.hlinux/module.hlinux/pci.hlinux/platform_device.hlinux/property.h
Detected Declarations
struct i2c_peripheralstruct acpi_peripheralstruct chromeos_laptopenum i2c_adapter_typefunction chromes_laptop_instantiate_i2c_devicefunction chromeos_laptop_match_adapter_devidfunction chromeos_laptop_check_adapterfunction chromeos_laptop_adjust_clientfunction chromeos_laptop_detach_i2c_clientfunction chromeos_laptop_i2c_notifier_callfunction chromeos_laptop_scan_peripheralsfunction chromeos_laptop_get_irq_from_dmifunction chromeos_laptop_setup_irqfunction chromeos_laptop_prepare_i2c_peripheralsfunction chromeos_laptop_prepare_acpi_peripheralsfunction chromeos_laptop_destroyfunction chromeos_laptop_preparefunction chromeos_laptop_initfunction chromeos_laptop_exitmodule init chromeos_laptop_init
Annotated Snippet
module_init(chromeos_laptop_init);
module_exit(chromeos_laptop_exit);
MODULE_DESCRIPTION("Chrome OS Laptop driver");
MODULE_AUTHOR("Benson Leung <bleung@chromium.org>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/dmi.h`, `linux/i2c.h`, `linux/input.h`, `linux/interrupt.h`, `linux/ioport.h`, `linux/module.h`, `linux/pci.h`.
- Detected declarations: `struct i2c_peripheral`, `struct acpi_peripheral`, `struct chromeos_laptop`, `enum i2c_adapter_type`, `function chromes_laptop_instantiate_i2c_device`, `function chromeos_laptop_match_adapter_devid`, `function chromeos_laptop_check_adapter`, `function chromeos_laptop_adjust_client`, `function chromeos_laptop_detach_i2c_client`, `function chromeos_laptop_i2c_notifier_call`.
- 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.