armoury_get_devstate(9)
π armoury_get_devstate(9) β the Kernel API Manual, bestie edition β¨
okay so real talk, this page lives in the Kernel API Manual, and it's all about armoury_get_devstate β literally the function that goes and asks WMI "hey girl, what's your state?" π
πΈ NAME πΈ
armoury_get_devstate β get the WMI function state. that's it, that's the whole vibe check π«
π¦ SYNOPSIS π¦
int armoury_get_devstate (struct kobj_attribute *attr , u32 *retval ,
u32 dev_id );
copy it exactly like that, spacing and all, no cap π«Ά
β¨ ARGUMENTS β¨
attrβ eitherNULL, or thekobj_attributethat's associated with the WMI function you're calling. your call bestie πretvalβ this one's a two-for-one deal:- it's a non-
NULLpointer to where the value returned from WMI gets stored π - and the function presence bit is cleared in it, periodt
- it's a non-
dev_idβ the WMI method ID to call. the main character of the argument list fr fr β
π DESCRIPTION π
the intended usage is from a sysfs attribute, checking the associated WMI function. that's the whole plan, that's the assignment π§
π₯ RETURN π₯
-ENODEVβ the method ID is unsupported, so likeβ¦ not a thing, move on π0β slay, it worked, andretvalis filled πβ¨- other β an error from the WMI call, which is giving "not our fault, blame WMI" energy π
π SEE ALSO π
- Kernel file
./drivers/platform/x86/asus-armoury.cπ armoury_has_devstate(9)armoury_set_devstate(9)is_power_tunable_attr(9)has_valid_limit(9)
go read those too, iykyk π¦
lowkey important:retvalneeds to be non-NULLif you actually want the value back β don't come for me when there's nowhere to put it π
and that's the page!! π sign-off time: this one comes from ./drivers/platform/x86 and it's dated October 2026 β mwah, go forth and check those devstates bestie ππ«Ά
π¦ 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