armoury_attr_uint_store(9)
π 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 auinttype. yes, literally parsed. iconic.countβ required by the sysfs attribute macros, so the callee just passes it in from its ownattr. 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:
- the sysfs attribute is notified π£
- if
asus_bios_requires_rebootis 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms