lwmi_psy_ext_get_prop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lwmi_psy_ext_get_prop β€” the kernel API manual, bestie edition πŸ’–

Okay so picture this: it's a (9) section page, the man page name is literally lwmi_psy_ext_get_prop, and it lives in the Kernel API Manual. That's the vibe. Let's get into it 🫢


✨ NAME ✨

lwmi_psy_ext_get_prop β€” get a power_supply_ext property. That's it, that's the whole errand. πŸ’…


🌸 SYNOPSIS 🌸

int lwmi_psy_ext_get_prop (struct power_supply *ps , const struct
       power_supply_ext *ext , void *ext_data , enum power_supply_property prop
       , union power_supply_propval *val );

Like yes, it's five arguments, don't panic. We go through them one by one down below πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • ps β€” the battery that was extended. She got the upgrade, we're just visiting her πŸ’–
  • ext β€” the extension itself. The actual extra-ness πŸ’…
  • ext_data β€” a pointer to the lwmi_om_priv drvdata. Yes, exactly that one, no cap 🫢
  • prop β€” the property we want to read, an enum power_supply_property bestie 🌸
  • val β€” where the value gets handed back to you, a union power_supply_propval. It's giving output parameter 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

Reads the given value from the power_supply_ext property. That's the whole plot. Simple, iconic, does one thing ⭐


πŸ‘‘ RETURN πŸ‘‘

0 on success, or an error. So like, check your return value, bestie, fr fr πŸ™ˆ


🌈 SEE ALSO 🌈

The kernel file in question:

./drivers/platform/x86/lenovo/wmi-other.c

And the whole friend group, everyone's invited to the group chat:


So that's the tea πŸ“ This page comes to you from ./drivers/platform/x86/lenovo, dated October 2026 β€” mwah, love that for us. Go read your properties responsibly, ily, bye πŸ’œπŸ§š

πŸ“¦ where this page comes from