lwmi_cd_fan_..._alloc_cache(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 returned cd_list pointer 🎯 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 πŸ‘‘:


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