lwmi_psy_ext_set_prop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is lwmi_psy_ext_set_prop(9) from the Kernel API Manual β€” yes, the one and only ✨. She sets a power_supply_ext property, and honestly? Iconic behavior.

πŸ’– NAME πŸ’–

lwmi_psy_ext_set_prop β€” Set a power_supply_ext property. That's the whole assignment, no cap.

✨ SYNOPSIS ✨

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

🫢 ARGUMENTS 🫢

  • ps β€” the battery that was extended. main character battery energy.
  • ext β€” the extension. the glow-up wrapper.
  • ext_data β€” pointer to the lwmi_om_priv drvdata. literally the little data bag it carries.
  • prop β€” the property to write. pick your fave property.
  • val β€” the value to write. the value bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

Writes the given value to the power_supply_ext property. That's it, that's the vibe: write the value, slay, done πŸ’….

🌸 RETURN 🌸

0 on success, or an error. success is 0 β€” she ate and left no crumbs; anything else is an error, periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/platform/x86/lenovo/wmi-other.c


cute sign-off: this page lives under ./drivers/platform/x86/lenovo and is dated October 2026 πŸŽ€. byeee, go set those props responsibly, bestie πŸ’–

πŸ“¦ where this page comes from