lwmi_cd_fan_..._alloc_cache(9)
π lwmi_cd_fan_list_alloc_cache β Kernel API Manual β¨
okay so bestie, welcome to the lwmi_cd_fan_list_alloc_cache glow-up π
this little icon lives in the Kernel API Manual and she has like, ONE job, and she does it immaculately, no cap π
πΈ NAME πΈ
lwmi_cd_fan_list_alloc_cache β literally allocates AND caches the Fan Test Data list π¦ she's giving multitasking queen, she's giving main character energy π
β¨ SYNOPSIS β¨
int lwmi_cd_fan_list_alloc_cache (struct lwmi_cd_priv *priv , struct
cd_list **listptr );
that's it. that's the whole vibe check π₯ two args, one int coming back at you, periodt π
π ARGUMENTS π
privβ the lenovo-wmi-capdata driver data π«Ά that's your context babe, she carries everything the driver needs to know about herself πlistptrβ pointer to the returnedcd_listpointer π― like, a pointer to a pointer, yes we're being extra today, we're going two levels deep and honestly? slay π§
π RETURN π
the count of fans found π or an error π if it goes sideways it hands you back an error instead, and you're just gonna have to deal with that fr fr
ngl bestie, check it β if you get an error back, that's not the fan count, don't go treating it like one π
π¦ SEE ALSO π¦
she does not exist in a vacuum, she has a whole friend group π and the Kernel file she calls home is:
./drivers/platform/x86/lenovo/wmi-capdata.c
the whole squad, in order, no one left behind π:
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_alloc(9)lwmi_cd_setup(9)lwmi_cd01_notifier_call(9)lwmi_cd01_unregister(9)
and that's the page babes π«Ά mwah π
she ships out of ./drivers/platform/x86/lenovo π stamped October 2026 β go forth and cache your fan lists responsibly, iykyk π
π¦ 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