lwmi_cd_setup(9)
πΎ lwmi_cd_setup(9) β Kernel API Manual β¨
okay bestie, welcome to the lwmi_cd_setup(9) page from the Kernel API Manual β it's giving kernel setup, but make it cute. π
πΈ NAME
lwmi_cd_setup β cache all WMI data block information π«Ά
β¨ SYNOPSIS
int lwmi_cd_setup (struct lwmi_cd_priv *priv , enum lwmi_cd_type type );
π ARGUMENTS
privβ lenovo-wmi-capdata driver data. it's the driver's own little data bag, no cap πtypeβ the type of capability data. yes, it's telling us which flavor of capdata we're working with π
π¦ DESCRIPTION
okay so first it allocates a cd_list struct large enough to contain data from all WMI data blocks provided by the interface. then it loops through each data block and caches the data. allocate, loop, cache β main character energy, honestly β¨
π RETURN
0 on success, or an error code. periodt. π
π SEE ALSO
Kernel file ./drivers/platform/x86/lenovo/wmi-capdata.c
lwmi_cd_match(9)lwmi_cd_match_add_all(9)lwmi_cd_call_master_cb(9)lwmi_cd_component_bind(9)lwmi_cd_component_unbind(9)lwmi_cd_sub_master_bind(9)lwmi_cd_sub_master_unbind(9)lwmi_cd_sub_master_add(9)lwmi_cd_sub_master_del(9)lwmi_cd_sub_component_bind(9)lwmi_cd00_show(9)lwmi_cd01_show(9)lwmi_cd_fan_show(9)lwmi_cd_debugfs_show(9)lwmi_cd_debugfs_add(9)lwmi_cd_debugfs_remove(9)lwmi_cd_cache(9)lwmi_cd_fan_list_alloc_cache(9)lwmi_cd_alloc(9)lwmi_cd01_notifier_call(9)lwmi_cd01_unregister(9)
made with π from ./drivers/platform/x86/lenovo Β· October 2026 Β· lwmi_cd_setup(9) π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms