lwmi_psy_prop_is_writeable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lwmi_psy_prop_is_writeable β€” the Kernel API Manual cutie

okay so bestie, buckle up, because we're diving into lwmi_psy_prop_is_writeable(9) from the Kernel API Manual and honestly? she's a tiny little function with one job and she does it. no cap. πŸŽ€


✨ NAME ✨

lwmi_psy_prop_is_writeable β€” figure out whether a property is writeable or not πŸ¦‹


🌸 SYNOPSIS 🌸

int lwmi_psy_prop_is_writeable (struct power_supply *ps , const struct
power_supply_ext *ext , void *ext_data , enum power_supply_property prop
);

like, four whole arguments. she's lowkey high-maintenance but we love her for it πŸ’…


πŸ“ ARGUMENTS πŸ“

  • ps β€” the battery that was extended πŸ‘‘ this is the main character right here
  • ext β€” the extension ✨
  • ext_data β€” a pointer to the lwmi_om_priv drvdata 🫢
  • prop β€” the property we're checking, bestie πŸ”

πŸ’œ DESCRIPTION πŸ’œ

okay so the way this works is it checks capdata 00 to determine if the property is writable. that's it. that's the whole vibe. she peeks at capdata 00 and comes back with an answer. iconic behavior, honestly 😭✨


πŸ”₯ RETURN πŸ”₯

  • true if writable 🌈
  • false if not πŸ’€

fr fr, that's the whole return value situation. no surprises, no drama, just truthy or falsy.


🌟 SEE ALSO 🌟

bestie, this list is LONG and I'm obsessed with the range. she knows everybody 😀

like I said. she knows EVERYONE. main character energy fr πŸŒˆπŸ’œ


and that's the whole page, bestie!! this one came from ./drivers/platform/x86/lenovo, dated October 2026, and she's filed under lwmi_psy_prop_is_writeable(9) β€” go forth and check those properties βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from