armoury_attr_uint_store(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… armoury_attr_uint_store(9)

okay so bestie, welcome to the Kernel API Manual page for armoury_attr_uint_store(9) β€” literally the little sysfs-to-WMI integer pipeline, and we're gonna read it together, no cap 🫢


✨ NAME ✨

armoury_attr_uint_store β€” send an uint to a WMI method, but only if it's within min/max. That's the whole vibe check right there πŸ’…


🌸 SYNOPSIS 🌸

ssize_t armoury_attr_uint_store (struct kobject *kobj , struct
kobj_attribute *attr , const char *buf , size_t count , u32 min , u32
max , u32 *store_value , u32 wmi_dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • kobj β€” pointer to the driver object. that's it, that's the girl 🫢
  • attr β€” pointer to the attribute that's calling this function.
  • buf β€” the buffer we read from; it gets parsed into a uint type. yes, literally parsed. iconic.
  • count β€” required by the sysfs attribute macros, so the callee just passes it in from its own attr. not us being extra, it's the macros 😭
  • min β€” the minimum accepted value. go below this and it returns -EINVAL. disrespect will not be tolerated πŸ’€
  • max β€” the maximum accepted value. go above this and it also returns -EINVAL. same energy, other direction ✨
  • store_value β€” pointer to where the parsed value should be stored. hold her gently πŸŽ€
  • wmi_dev β€” the WMI function ID to use.

πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole point of this function is being generic β€” it's designed so literally any "_store" attribute that works only with integers can just call it. lowkey the friend who always has the charger πŸ”₯

integers headed to the WMI method get an inclusive range check, and if the value's out of range it returns an error. boundaries are healthy, bestie 🌈

if the value is valid and the WMI call is a success, then two things happen:

  1. the sysfs attribute is notified πŸ“£
  2. if asus_bios_requires_reboot is true, then the reboot attribute is also notified πŸ‘‘
so yeah β€” sometimes setting a number means "hey, reboot me." that's just how it is, don't shoot the messenger πŸ’€

⭐ RETURN ⭐

either count, or an error. that's the whole menu, bestie πŸ“


πŸ‘‘ SEE ALSO πŸ‘‘

  • kernel file ./drivers/platform/x86/asus-armoury.h
  • armoury_attr_uint_show(9) β€” the read-side sister, go say hi πŸ’–

and that's the page!! mwah πŸ’‹ this one lives in ./drivers/platform/x86 and it's dated October 2026 β€” periodt, go forth and store your uints responsibly, ily πŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from