lwmi_cd_setup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Ύ 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


made with πŸ’– from ./drivers/platform/x86/lenovo Β· October 2026 Β· lwmi_cd_setup(9) πŸŽ€

πŸ“¦ where this page comes from