drivers/platform/x86/lenovo/yogabook.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/lenovo/yogabook.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/lenovo/yogabook.c- Extension
.c- Size
- 14969 bytes
- Lines
- 576
- 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/acpi.hlinux/gpio/consumer.hlinux/gpio/machine.hlinux/i2c.hlinux/interrupt.hlinux/leds.hlinux/module.hlinux/platform_device.hlinux/pwm.hlinux/wmi.hlinux/workqueue.h
Detected Declarations
struct yogabook_datafunction yogabook_workfunction yogabook_toggle_digitizer_modefunction yogabook_backside_hall_irqfunction kbd_brightness_getfunction kbd_brightness_setfunction yogabook_probefunction yogabook_removefunction yogabook_suspendfunction yogabook_resumefunction devicefunction yogabook_wmi_probefunction yogabook_wmi_removefunction yogabook_wmi_notifyfunction yogabook_pdev_set_kbd_backlightfunction yogabook_pen_touch_irqfunction yogabook_pdev_probefunction yogabook_pdev_removefunction yogabook_module_initfunction yogabook_module_exitmodule init yogabook_module_init
Annotated Snippet
module_init(yogabook_module_init);
module_exit(yogabook_module_exit);
MODULE_ALIAS("platform:" YB_PDEV_NAME);
MODULE_AUTHOR("Yauhen Kharuzhy");
MODULE_DESCRIPTION("Lenovo Yoga Book driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/gpio/consumer.h`, `linux/gpio/machine.h`, `linux/i2c.h`, `linux/interrupt.h`, `linux/leds.h`, `linux/module.h`, `linux/platform_device.h`.
- Detected declarations: `struct yogabook_data`, `function yogabook_work`, `function yogabook_toggle_digitizer_mode`, `function yogabook_backside_hall_irq`, `function kbd_brightness_get`, `function kbd_brightness_set`, `function yogabook_probe`, `function yogabook_remove`, `function yogabook_suspend`, `function yogabook_resume`.
- 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.