drivers/platform/x86/lenovo/wmi-helpers.h
Source file repositories/reference/linux-study-clean/drivers/platform/x86/lenovo/wmi-helpers.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/lenovo/wmi-helpers.h- Extension
.h- Size
- 1089 bytes
- Lines
- 42
- Domain
- Driver Families
- Bucket
- drivers/platform
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct devicestruct notifier_blockstruct wmi_devicestruct wmi_method_args_32enum lwmi_event_typeenum thermal_mode
Annotated Snippet
struct wmi_method_args_32 {
u32 arg0;
u32 arg1;
};
enum lwmi_event_type {
LWMI_GZ_GET_THERMAL_MODE = 0x01,
};
enum thermal_mode {
LWMI_GZ_THERMAL_MODE_NONE = 0x00,
LWMI_GZ_THERMAL_MODE_QUIET = 0x01,
LWMI_GZ_THERMAL_MODE_BALANCED = 0x02,
LWMI_GZ_THERMAL_MODE_PERFORMANCE = 0x03,
LWMI_GZ_THERMAL_MODE_EXTREME = 0xE0, /* Ver 6+ */
LWMI_GZ_THERMAL_MODE_CUSTOM = 0xFF,
};
int lwmi_dev_evaluate_int(struct wmi_device *wdev, u8 instance, u32 method_id,
unsigned char *buf, size_t size, u32 *retval);
int lwmi_tm_register_notifier(struct notifier_block *nb);
int lwmi_tm_unregister_notifier(struct notifier_block *nb);
int devm_lwmi_tm_register_notifier(struct device *dev,
struct notifier_block *nb);
int lwmi_tm_notifier_call(enum thermal_mode *mode);
#endif /* !_LENOVO_WMI_HELPERS_H_ */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct device`, `struct notifier_block`, `struct wmi_device`, `struct wmi_method_args_32`, `enum lwmi_event_type`, `enum thermal_mode`.
- Atlas domain: Driver Families / drivers/platform.
- Implementation status: source 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.